diff options
author | 2022-07-09 11:32:50 -0700 | |
---|---|---|
committer | 2022-07-09 11:32:50 -0700 | |
commit | c7051d0b87d3d40b979007cf99f46f5be048a1ec (patch) | |
tree | 96499ac8c3612e95e456018dba21310e9f14c97d | |
parent | Test v1 cgroups are created as needed (diff) |
Use more common binary for testing v1 cgroups
-rw-r--r-- | tests/test_nsjail.py | 6 |
1 files changed, 3 insertions, 3 deletions
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) |