From 58be64a9b1f00d399383852a858df7e514d7b535 Mon Sep 17 00:00:00 2001 From: Alon Zakai Date: Fri, 15 Jan 2016 14:14:24 -0800 Subject: print check.py warnings at the end, where they have a chance to be noticed --- check.py | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) (limited to 'check.py') diff --git a/check.py b/check.py index 15804b53e..acc4c926e 100755 --- a/check.py +++ b/check.py @@ -75,14 +75,16 @@ if len(requested) == 0: else: tests = requested[:] +warnings = [] + if not interpreter: - print 'warning: no interpreter provided (not testing spec interpreter validation)' + warnings.append('warning: no interpreter provided (not testing spec interpreter validation)') if not has_node: - print 'warning: no node found (not checking proper js form)' + warnings.append( 'warning: no node found (not checking proper js form)') if not has_mozjs: - print 'warning: no mozjs found (not checking asm.js validation)' + warnings.append( 'warning: no mozjs found (not checking asm.js validation)') if not has_emcc: - print 'warning: no emcc found (not checking emscripten/binaryen integration)' + warnings.append('warning: no emcc found (not checking emscripten/binaryen integration)') print '[ checking asm2wasm testcases... ]\n' @@ -432,3 +434,6 @@ if has_emcc: fail(out, expected) print '\n[ success! ]' + +if warnings: + print warnings -- cgit v1.2.3