summaryrefslogtreecommitdiff
path: root/auto_update_tests.py
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2016-10-22 09:10:11 -0700
committerGitHub <noreply@github.com>2016-10-22 09:10:11 -0700
commit58123ff10f075100bfb4fc5885cae04607564139 (patch)
tree8a48f4845d0936abc1934b64598025380b4a5e25 /auto_update_tests.py
parent9afa80951a3e9e59d5348780370a8b67d829ded1 (diff)
parent64e9b3fa53e5b4a88ad424f4cdf00f923664246f (diff)
downloadbinaryen-58123ff10f075100bfb4fc5885cae04607564139.tar.gz
binaryen-58123ff10f075100bfb4fc5885cae04607564139.tar.bz2
binaryen-58123ff10f075100bfb4fc5885cae04607564139.zip
Merge pull request #799 from WebAssembly/pass-cleanup
Some tiny pass cleanups
Diffstat (limited to 'auto_update_tests.py')
-rwxr-xr-xauto_update_tests.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/auto_update_tests.py b/auto_update_tests.py
index a2d165802..63590f6cc 100755
--- a/auto_update_tests.py
+++ b/auto_update_tests.py
@@ -77,7 +77,7 @@ for t in sorted(os.listdir(os.path.join('test', 'passes'))):
if t.endswith('.wast'):
print '..', t
passname = os.path.basename(t).replace('.wast', '')
- opts = ['-O'] if passname == 'O' else ['--' + p for p in passname.split('_')]
+ opts = ['-' + passname] if passname.startswith('O') else ['--' + p for p in passname.split('_')]
t = os.path.join('test', 'passes', t)
actual = ''
for module, asserts in split_wast(t):