@@ -537,18 +537,20 @@ def package(self):
537
537
538
538
sorted_expected = sorted (expected )
539
539
assert sorted (os .listdir (os .path .join (c .current_folder , "output" ))) == sorted_expected
540
+ link_so_0 = os .path .join (c .current_folder , "output" , "libfoo.so.0" )
541
+ link_so = os .path .join (c .current_folder , "output" , "libfoo.so" )
542
+ lib = os .path .join (c .current_folder , "output" , "libfoo.so.0.1.0" )
540
543
# INFO: This test requires in Windows to have symlinks enabled, otherwise it will fail
541
544
if symlink and platform .system () != "Windows" :
542
- link_so_0 = os .path .join (c .current_folder , "output" , "libfoo.so.0" )
543
- link_so = os .path .join (c .current_folder , "output" , "libfoo.so" )
544
- lib = os .path .join (c .current_folder , "output" , "libfoo.so.0.1.0" )
545
545
assert os .path .islink (link_so_0 )
546
546
assert os .path .islink (link_so )
547
547
assert not os .path .isabs (os .readlink (link_so_0 ))
548
548
assert not os .path .isabs (os .readlink (os .path .join (link_so )))
549
549
assert os .path .realpath (link_so ) == os .path .realpath (link_so_0 )
550
550
assert os .path .realpath (link_so_0 ) == os .path .realpath (lib )
551
551
assert not os .path .islink (lib )
552
+ else :
553
+ assert not os .path .islink (lib )
552
554
553
555
554
556
def test_deployer_errors ():
0 commit comments