Commit 34617277 by Julia Hansbrough

Fix for updated logging messages

parent 96df4fc2
...@@ -209,7 +209,7 @@ def jail_code(command, code=None, files=None, argv=None, stdin=None, ...@@ -209,7 +209,7 @@ def jail_code(command, code=None, files=None, argv=None, stdin=None,
) )
if slug: if slug:
log.debug("Executing jailed code %s in %s, with PID %s", slug, homedir, subproc.id) log.debug("Executing jailed code %s in %s, with PID %s", slug, homedir, subproc.pid)
# Start the time killer thread. # Start the time killer thread.
realtime = LIMITS["REALTIME"] realtime = LIMITS["REALTIME"]
......
...@@ -48,7 +48,8 @@ class TestFeatures(JailCodeHelpers, unittest.TestCase): ...@@ -48,7 +48,8 @@ class TestFeatures(JailCodeHelpers, unittest.TestCase):
def test_argv(self): def test_argv(self):
res = jailpy( res = jailpy(
code="import sys; print ':'.join(sys.argv[1:])", code="import sys; print ':'.join(sys.argv[1:])",
argv=["Hello", "world", "-x"] argv=["Hello", "world", "-x"],
slug="a/useful/slug",
) )
self.assertResultOk(res) self.assertResultOk(res)
self.assertEqual(res.stdout, "Hello:world:-x\n") self.assertEqual(res.stdout, "Hello:world:-x\n")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment