aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2012-11-22 19:45:35 +0100
committerAlon Zakai <alonzakai@gmail.com>2012-11-22 19:45:35 +0100
commit23a27e95809a8437ed553c20eb4b1d6237ddd849 (patch)
tree1d7ef0cb41d7b089e4617548df5bf072371bc960 /tests
parent01082cf68acfd009156c14d7d2386d6f3d6bdd94 (diff)
fix o2.test_openjpeg
Diffstat (limited to 'tests')
-rwxr-xr-xtests/runner.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/runner.py b/tests/runner.py
index f523ffb4..aa976652 100755
--- a/tests/runner.py
+++ b/tests/runner.py
@@ -6188,7 +6188,9 @@ def process(filename):
finally:
del os.environ['EMCC_DEBUG']
for debug in [1,2]:
- self.assertIdentical(open('release.js').read().replace('\n\n', '\n').replace('\n\n', '\n'), open('debug%d.js' % debug).read().replace('\n\n', '\n').replace('\n\n', '\n')) # EMCC_DEBUG=1 mode must not generate different code!
+ def clean(text):
+ return text.replace('\n\n', '\n').replace('\n\n', '\n').replace('\n\n', '\n').replace('\n\n', '\n').replace('\n\n', '\n')
+ self.assertIdentical(clean(open('release.js').read()), clean(open('debug%d.js' % debug).read())) # EMCC_DEBUG=1 mode must not generate different code!
print >> sys.stderr, 'debug check %d passed too' % debug
try_delete(CANONICAL_TEMP_DIR)