From 64284970344ce5463adada38e348230256b31226 Mon Sep 17 00:00:00 2001 From: Alon Zakai Date: Thu, 26 Jan 2017 15:11:43 -0800 Subject: Read/Write Abstraction (#889) * Added ModuleReader/Writer classes that support text and binary I/O * Use them in wasm-opt and asm2wasm --- scripts/test/shared.py | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'scripts/test/shared.py') diff --git a/scripts/test/shared.py b/scripts/test/shared.py index 5aff20091..d899cc1de 100644 --- a/scripts/test/shared.py +++ b/scripts/test/shared.py @@ -389,18 +389,18 @@ def minify_check(wast, verify_final_result=True): print ' ', ' '.join(cmd) subprocess.check_call( WASM_OPT + [wast, '--print-minified'], - stdout=open('a.wasm', 'w'), stderr=subprocess.PIPE) - assert os.path.exists('a.wasm') + stdout=open('a.wast', 'w'), stderr=subprocess.PIPE) + assert os.path.exists('a.wast') subprocess.check_call( - WASM_OPT + ['a.wasm', '--print-minified'], - stdout=open('b.wasm', 'w'), stderr=subprocess.PIPE) - assert os.path.exists('b.wasm') + WASM_OPT + ['a.wast', '--print-minified'], + stdout=open('b.wast', 'w'), stderr=subprocess.PIPE) + assert os.path.exists('b.wast') if verify_final_result: - expected = open('a.wasm').read() - actual = open('b.wasm').read() + expected = open('a.wast').read() + actual = open('b.wast').read() if actual != expected: fail(actual, expected) - if os.path.exists('a.wasm'): - os.unlink('a.wasm') - if os.path.exists('b.wasm'): - os.unlink('b.wasm') + if os.path.exists('a.wast'): + os.unlink('a.wast') + if os.path.exists('b.wast'): + os.unlink('b.wast') -- cgit v1.2.3