summaryrefslogtreecommitdiff
path: root/tests/run-multitests.py
diff options
context:
space:
mode:
authorJim Mussared <jim.mussared@gmail.com>2020-04-07 15:03:31 +1000
committerDamien George <damien.p.george@gmail.com>2020-04-29 16:45:46 +1000
commitf588138bbe0dd25b413377b126ad395a5f6add2d (patch)
tree540899697aaaf5c246fdc2b3a8554223d4cd60e3 /tests/run-multitests.py
parent7563d582100d7947eb61960c9116c8fc10f1e996 (diff)
tests/run-multitests.py: Allow filtering out lines from stdout.
And use this new feature to filter out certain lines in the Bluetooth multitests.
Diffstat (limited to 'tests/run-multitests.py')
-rwxr-xr-xtests/run-multitests.py11
1 files changed, 10 insertions, 1 deletions
diff --git a/tests/run-multitests.py b/tests/run-multitests.py
index c8e537d4b..3817fbed7 100755
--- a/tests/run-multitests.py
+++ b/tests/run-multitests.py
@@ -58,6 +58,15 @@ instance{}()
multitest.flush()
"""
+# The btstack implementation on Unix generates some spurious output that we
+# can't control.
+IGNORE_OUTPUT_MATCHES = (
+ "libusb: error ", # It tries to open devices that it doesn't have access to (libusb prints unconditionally).
+ "hci_transport_h2_libusb.c", # Same issue. We enable LOG_ERROR in btstack.
+ "USB Path: ", # Hardcoded in btstack's libusb transport.
+ "hci_number_completed_packet", # Warning from btstack.
+)
+
class PyInstance:
def __init__(self):
@@ -239,7 +248,7 @@ def run_test_on_instances(test_file, num_instances, instances):
time.sleep(0.1)
continue
last_read_time = time.time()
- if out is not None:
+ if out is not None and not any(m in out for m in IGNORE_OUTPUT_MATCHES):
trace_instance_output(idx, out)
if out.startswith("SET "):
injected_globals += out[4:] + "\n"