summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--scripts/test/shared.py15
1 files changed, 2 insertions, 13 deletions
diff --git a/scripts/test/shared.py b/scripts/test/shared.py
index f782bb849..670d41d30 100644
--- a/scripts/test/shared.py
+++ b/scripts/test/shared.py
@@ -492,19 +492,8 @@ def minify_check(wast, verify_final_result=True):
cmd = WASM_OPT + [wast, '--print-minified', '-all']
print(' ', ' '.join(cmd))
subprocess.check_call(cmd, stdout=open('a.wast', 'w'), stderr=subprocess.PIPE)
- assert os.path.exists('a.wast')
- subprocess.check_call(WASM_OPT + ['a.wast', '--print-minified', '-all'],
- stdout=open('b.wast', 'w'), stderr=subprocess.PIPE)
- assert os.path.exists('b.wast')
- if verify_final_result:
- expected = open('a.wast').read()
- actual = open('b.wast').read()
- if actual != expected:
- fail(actual, expected)
- if os.path.exists('a.wast'):
- os.unlink('a.wast')
- if os.path.exists('b.wast'):
- os.unlink('b.wast')
+ subprocess.check_call(WASM_OPT + ['a.wast', '-all'],
+ stdout=subprocess.PIPE, stderr=subprocess.PIPE)
# run a check with BINARYEN_PASS_DEBUG set, to do full validation