summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xauto_update_tests.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/auto_update_tests.py b/auto_update_tests.py
index 273f05cb6..19e115917 100755
--- a/auto_update_tests.py
+++ b/auto_update_tests.py
@@ -33,7 +33,10 @@ 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)
- actual, err = subprocess.Popen([os.path.join('bin', 's2wasm'), full], stdout=subprocess.PIPE, stderr=subprocess.PIPE).communicate()
+ 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
expected_file = os.path.join('test', dot_s_dir, wasm)
@@ -78,4 +81,3 @@ for wast in sorted(os.listdir('test')):
open(os.path.join('test', wast + '.fromBinary'), 'w').write(actual)
print '\n[ success! ]'
-