summaryrefslogtreecommitdiff
path: root/test/sailtest.py
diff options
context:
space:
mode:
authorAlasdair Armstrong2019-07-16 18:57:46 +0100
committerAlasdair Armstrong2019-07-16 18:57:46 +0100
commitcd909e15b97739b10214023af04b2fbbb4d20cf7 (patch)
tree9a418c7cafa915c29e93242848a1411cbd8b8f7c /test/sailtest.py
parent6d3a6edcd616621eb40420cfb16a34762a32c5c1 (diff)
parent170543faa031d90186e6b45612ed8374f1c25f7b (diff)
Merge remote-tracking branch 'origin/sail2' into separate_bv
Diffstat (limited to 'test/sailtest.py')
-rw-r--r--test/sailtest.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/sailtest.py b/test/sailtest.py
index 6910d522..36568469 100644
--- a/test/sailtest.py
+++ b/test/sailtest.py
@@ -30,11 +30,11 @@ def chunks(filenames, cores):
ys.append(list(chunk))
return ys
-def step(string):
+def step(string, expected_status=0):
p = subprocess.Popen(string, shell=True, stderr=subprocess.PIPE, stdout=subprocess.PIPE)
out, err = p.communicate()
status = p.wait()
- if status != 0:
+ if status != expected_status:
print("{}Failed{}: {}".format(color.FAIL, color.END, string))
print('{}stdout{}:'.format(color.NOTICE, color.END))
print(out)