From c7051d0b87d3d40b979007cf99f46f5be048a1ec Mon Sep 17 00:00:00 2001 From: Mark <1515135+MarkKoz@users.noreply.github.com> Date: Sat, 9 Jul 2022 11:32:50 -0700 Subject: Use more common binary for testing v1 cgroups --- tests/test_nsjail.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tests') diff --git a/tests/test_nsjail.py b/tests/test_nsjail.py index 1a5c101..6f6e2a7 100644 --- a/tests/test_nsjail.py +++ b/tests/test_nsjail.py @@ -336,8 +336,8 @@ class NsJailCgroupTests(unittest.TestCase): rw: false } exec_bin { - path: "/usr/local/bin/python" - arg: "-Squ" + path: "/bin/su" + arg: "" } """ ).strip() @@ -383,4 +383,4 @@ class NsJailCgroupTests(unittest.TestCase): result = nsjail.python3("") - self.assertEqual(result.returncode, 0) + self.assertNotEqual(result.returncode, 255) -- cgit v1.2.3