aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Mark <[email protected]>2022-07-09 11:32:50 -0700
committerGravatar Mark <[email protected]>2022-07-09 11:32:50 -0700
commitc7051d0b87d3d40b979007cf99f46f5be048a1ec (patch)
tree96499ac8c3612e95e456018dba21310e9f14c97d
parentTest v1 cgroups are created as needed (diff)
Use more common binary for testing v1 cgroups
-rw-r--r--tests/test_nsjail.py6
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)