summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2015-12-04 20:45:21 -0800
committerAlon Zakai <alonzakai@gmail.com>2015-12-04 20:45:21 -0800
commit6c37ba0c87208cf0e1a5f3a84ba9df26a93aab9f (patch)
treee76fb2dce18812ecc84e18094c13f8710dea87d1
parenteb9ec0570b19dd58ef1cd7f2ab64254c2b28539b (diff)
downloadbinaryen-6c37ba0c87208cf0e1a5f3a84ba9df26a93aab9f.tar.gz
binaryen-6c37ba0c87208cf0e1a5f3a84ba9df26a93aab9f.tar.bz2
binaryen-6c37ba0c87208cf0e1a5f3a84ba9df26a93aab9f.zip
rename temp file
-rwxr-xr-xcheck.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/check.py b/check.py
index 7629fb840..33dacdcb9 100755
--- a/check.py
+++ b/check.py
@@ -54,15 +54,15 @@ for asm in tests:
# verify in wasm
if interpreter:
# remove imports, spec interpreter doesn't know what to do with them
- subprocess.check_call([os.path.join('bin', 'binaryen-shell'), '-remove-imports', '-print-after', os.path.join('test', wasm)], stdout=open('temp.wast', 'w'), stderr=subprocess.PIPE)
- proc = subprocess.Popen([interpreter, 'temp.wast'], stderr=subprocess.PIPE)
+ subprocess.check_call([os.path.join('bin', 'binaryen-shell'), '-remove-imports', '-print-after', os.path.join('test', wasm)], stdout=open('ztemp.wast', 'w'), stderr=subprocess.PIPE)
+ proc = subprocess.Popen([interpreter, 'ztemp.wast'], stderr=subprocess.PIPE)
out, err = proc.communicate()
if proc.returncode != 0:
try: # to parse the error
reported = err.split(':')[1]
start, end = reported.split('-')
start_line, start_col = map(int, start.split('.'))
- lines = open('temp.wast').read().split('\n')
+ lines = open('ztemp.wast').read().split('\n')
print
print '='*80
print lines[start_line-1]