From eb6db8b783717fb9e326a7673e2088aa0ac38f4f Mon Sep 17 00:00:00 2001 From: Mats Wichmann Date: Tue, 29 Nov 2022 09:08:46 -0700 Subject: TestCmdTests symlink fix Signed-off-by: Mats Wichmann --- testing/framework/TestCmdTests.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/testing/framework/TestCmdTests.py b/testing/framework/TestCmdTests.py index 6489095..0d41a43 100644 --- a/testing/framework/TestCmdTests.py +++ b/testing/framework/TestCmdTests.py @@ -3127,7 +3127,7 @@ class readable_TestCase(TestCmdTestCase): test.write('file1', "Test file #1\n") test.write(['foo', 'file2'], "Test file #2\n") if hasattr(os, 'symlink') and sys.platform != 'win32': - symlink('no_such_file', test.workpath('dangling_symlink')) + os.symlink('no_such_file', test.workpath('dangling_symlink')) test.readable(test.workdir, 0) # XXX skip these tests if euid == 0? @@ -3166,7 +3166,7 @@ class writable_TestCase(TestCmdTestCase): test.write('file1', "Test file #1\n") test.write(['foo', 'file2'], "Test file #2\n") if hasattr(os, 'symlink') and sys.platform != 'win32': - symlink('no_such_file', test.workpath('dangling_symlink')) + os.symlink('no_such_file', test.workpath('dangling_symlink')) test.writable(test.workdir, 0) # XXX skip these tests if euid == 0? -- cgit v0.12