Commit 1c3806b1 authored by Michael Arntzenius's avatar Michael Arntzenius

test/tests/dash_c.py: flush output to avoid nondeterminism

parent bd7a413d
......@@ -7,7 +7,10 @@ with open('/dev/null')as ignore:
# We don't (yet?) require exact stderr or return code compatibility w/
# python. So we just check that we succeed or fail as appropriate.
def run(args):
print subprocess.call([me] + args, stderr=ignore)
code = 0 == subprocess.call([me] + args, stderr=ignore)
sys.stdout.flush()
print code
sys.stdout.flush()
run(["-c", "print 2 + 2"])
run(["-c", "import sys; print sys.argv", "hello", "world"])
......
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