summaryrefslogtreecommitdiff
path: root/check.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 /check.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 'check.py')
-rwxr-xr-xcheck.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/check.py b/check.py
index 528bc34cb..d6b1dc601 100755
--- a/check.py
+++ b/check.py
@@ -336,7 +336,7 @@ for t in sorted(os.listdir(os.path.join(options.binaryen_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(options.binaryen_test, 'passes', t)
actual = ''
for module, asserts in split_wast(t):