Commit ad450a2a authored by Martín Ferrari's avatar Martín Ferrari

Fix trap command in test

parent 83e3de74
...@@ -182,7 +182,7 @@ class TestSubprocess(unittest.TestCase): ...@@ -182,7 +182,7 @@ class TestSubprocess(unittest.TestCase):
# forceful destroy # forceful destroy
# Command: ignore SIGTERM, write \n to synchronise and then sleep while # Command: ignore SIGTERM, write \n to synchronise and then sleep while
# closing stdout (so _readall finishes) # closing stdout (so _readall finishes)
cmd = 'trap "" SIGTERM; echo; exec sleep 100 > /dev/null' cmd = 'trap "" TERM; echo; exec sleep 100 > /dev/null'
r, w = os.pipe() r, w = os.pipe()
p = Subprocess(node, cmd, shell = True, stdout = w) p = Subprocess(node, cmd, shell = True, stdout = w)
......
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