diff --git a/test/fuzzing/run-shape-fuzzer-tests.py b/test/fuzzing/run-shape-fuzzer-tests.py index 6d36c2cfe..a2f8b5c97 100755 --- a/test/fuzzing/run-shape-fuzzer-tests.py +++ b/test/fuzzing/run-shape-fuzzer-tests.py @@ -39,7 +39,12 @@ def cmd (command): timer.start() p.wait () tempf.seek (0) - text = tempf.read ().decode ("utf-8").strip () + text = tempf.read () + + #TODO: Detect debug mode with a better way + is_debug_mode = b"SANITIZE" in text + + text = "" if is_debug_mode else text.decode ("utf-8").strip () returncode = p.returncode finally: timer.cancel() diff --git a/test/fuzzing/run-subset-fuzzer-tests.py b/test/fuzzing/run-subset-fuzzer-tests.py index 820519f09..297398ce3 100755 --- a/test/fuzzing/run-subset-fuzzer-tests.py +++ b/test/fuzzing/run-subset-fuzzer-tests.py @@ -39,7 +39,12 @@ def cmd(command): timer.start() p.wait () tempf.seek (0) - text = tempf.read().decode ("utf-8").strip () + text = tempf.read () + + #TODO: Detect debug mode with a better way + is_debug_mode = b"SANITIZE" in text + + text = "" if is_debug_mode else text.decode ("utf-8").strip () returncode = p.returncode finally: timer.cancel()