From 98e7ff034aa0c5d370ce3dcca3f48c30eb470ad8 Mon Sep 17 00:00:00 2001 From: Alon Zakai Date: Thu, 13 Oct 2016 12:25:22 -0700 Subject: pass/wast fuzzer improvements --- scripts/fuzz_passes_wast.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'scripts/fuzz_passes_wast.py') diff --git a/scripts/fuzz_passes_wast.py b/scripts/fuzz_passes_wast.py index 5ec032de1..7691cbbf5 100644 --- a/scripts/fuzz_passes_wast.py +++ b/scripts/fuzz_passes_wast.py @@ -53,10 +53,11 @@ args = sys.argv[2:] def run(): try: - print 'run', ['bin/wasm-opt', wast] - subprocess.check_call(['bin/wasm-opt', wast]) + cmd = ['bin/wasm-opt', wast] + print 'run', cmd + subprocess.check_call(cmd, stderr=open('/dev/null')) except Exception, e: - print ">>> !!! ", e, " !!!" + return ">>> !!! ", e, " !!!" return 'ok' original_wast = None @@ -105,6 +106,7 @@ try: tested = set() def pick_passes(): + # return '--waka'.split(' ') ret = [] while 1: str_ret = str(ret) -- cgit v1.2.3