From 04f43409abbebd9d3d07f1e38037ba47e6906fa7 Mon Sep 17 00:00:00 2001 From: Alon Zakai Date: Mon, 2 Nov 2015 17:38:50 -0800 Subject: add optional arguments to check.py --- check.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'check.py') 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(): -- cgit v1.2.3