From 7ffdc335c7c899c282cb3d8216773dca1c26455b Mon Sep 17 00:00:00 2001 From: Alon Zakai Date: Fri, 4 Mar 2016 16:26:51 -0800 Subject: fix min.wast testcase --- check.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'check.py') diff --git a/check.py b/check.py index e4dfbb0b4..b7e4db698 100755 --- a/check.py +++ b/check.py @@ -317,7 +317,7 @@ for t in sorted(os.listdir(os.path.join('test', 'print'))): cmd = [os.path.join('bin', 'binaryen-shell'), os.path.join('test', 'print', t), '--print-minified'] print ' ', ' '.join(cmd) actual, err = subprocess.Popen(cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE).communicate() - fail_if_not_identical(actual, open(os.path.join('test', 'print', wasm + '.minified.txt')).read()) + fail_if_not_identical(actual.strip(), open(os.path.join('test', 'print', wasm + '.minified.txt')).read().strip()) print '\n[ checking binaryen-shell passes... ]\n' -- cgit v1.2.3