summaryrefslogtreecommitdiff
path: root/check.py
diff options
context:
space:
mode:
Diffstat (limited to 'check.py')
-rwxr-xr-xcheck.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/check.py b/check.py
index 10093a3cc..495abfe50 100755
--- a/check.py
+++ b/check.py
@@ -408,8 +408,9 @@ for dot_s_dir in ['dot_s', 'llvm_autogenerated']:
print '..', s
wasm = s.replace('.s', '.wast')
full = os.path.join('test', dot_s_dir, s)
- start = ['--start'] if s.startswith('start_') else []
- cmd = [os.path.join('bin', 's2wasm'), full] + start
+ cmd = [os.path.join('bin', 's2wasm'), full]
+ if s.startswith('start_'):
+ cmd.append('--start')
actual, err = subprocess.Popen(cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE).communicate()
assert err == '', 'bad err:' + err