summaryrefslogtreecommitdiff
path: root/check.py
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2015-10-29 16:44:44 -0700
committerAlon Zakai <alonzakai@gmail.com>2015-10-29 16:44:44 -0700
commitd9ae6b3dcccf32a46e92d18105dcf38702e25573 (patch)
tree66b6e8ba83015cb1412f04636b4035f7bdde5cd9 /check.py
parent067c77c9607764405bdf42023c3105a7e6ee81fd (diff)
downloadbinaryen-d9ae6b3dcccf32a46e92d18105dcf38702e25573.tar.gz
binaryen-d9ae6b3dcccf32a46e92d18105dcf38702e25573.tar.bz2
binaryen-d9ae6b3dcccf32a46e92d18105dcf38702e25573.zip
fix export printing
Diffstat (limited to 'check.py')
-rwxr-xr-xcheck.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/check.py b/check.py
index 2381d38d5..ce4066a4c 100755
--- a/check.py
+++ b/check.py
@@ -34,8 +34,7 @@ for asm in tests:
raise Exception('output .wast file does not exist')
expected = open(os.path.join('test', wasm)).read()
if actual != expected:
- raise Exception("Expected to have '%s' == '%s', diff:\n\n%s" % (
- expected, actual,
+ raise Exception("incorrect output, diff:\n\n%s" % (
''.join([a.rstrip()+'\n' for a in difflib.unified_diff(expected.split('\n'), actual.split('\n'), fromfile='expected', tofile='actual')])
))