Skip to content

Commit 481578e

Browse files
committed
Validate when not using synlink
Signed-off-by: Uilian Ries <uilianries@gmail.com>
1 parent 6dd49ed commit 481578e

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

test/functional/command/test_install_deploy.py

+5-3
Original file line numberDiff line numberDiff line change
@@ -537,18 +537,20 @@ def package(self):
537537

538538
sorted_expected = sorted(expected)
539539
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")
540543
# INFO: This test requires in Windows to have symlinks enabled, otherwise it will fail
541544
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")
545545
assert os.path.islink(link_so_0)
546546
assert os.path.islink(link_so)
547547
assert not os.path.isabs(os.readlink(link_so_0))
548548
assert not os.path.isabs(os.readlink(os.path.join(link_so)))
549549
assert os.path.realpath(link_so) == os.path.realpath(link_so_0)
550550
assert os.path.realpath(link_so_0) == os.path.realpath(lib)
551551
assert not os.path.islink(lib)
552+
else:
553+
assert not os.path.islink(lib)
552554

553555

554556
def test_deployer_errors():

0 commit comments

Comments
 (0)