summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xcheck.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/check.py b/check.py
index ade77f0af..7ec0d6343 100755
--- a/check.py
+++ b/check.py
@@ -90,7 +90,12 @@ for c in tests:
print ' (no post)'
for which in ['normal', 'wasm']:
print '......', which
- proc = subprocess.Popen(['nodejs', 'a.' + which + '.js'], stdout=subprocess.PIPE)
+ try:
+ args = json.loads(open(os.path.join('test', base + '.args')).read())
+ except:
+ args = []
+ print ' (no args)'
+ proc = subprocess.Popen(['nodejs', 'a.' + which + '.js'] + args, stdout=subprocess.PIPE)
out, err = proc.communicate()
assert proc.returncode == 0
if out.strip() != expected.strip():