summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJF Bastien <jfb@chromium.org>2016-02-05 05:28:05 -0800
committerJF Bastien <jfb@chromium.org>2016-02-05 05:28:05 -0800
commit29eb5d43d47fad7be03536ef50638dd14fd1dc5c (patch)
tree4f5931d8f5cd8122b2fed1e6e01d4ef9227afa97
parent9cfdb12d4976e4a9fbf6d902065904ffa48bdbec (diff)
downloadbinaryen-29eb5d43d47fad7be03536ef50638dd14fd1dc5c.tar.gz
binaryen-29eb5d43d47fad7be03536ef50638dd14fd1dc5c.tar.bz2
binaryen-29eb5d43d47fad7be03536ef50638dd14fd1dc5c.zip
auto-update: pass --start when needed
-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! ]'
-