diff --git a/testsuite/drivers/base_driver.py b/testsuite/drivers/base_driver.py index eafe81932..ee3d9b132 100644 --- a/testsuite/drivers/base_driver.py +++ b/testsuite/drivers/base_driver.py @@ -332,7 +332,7 @@ def data_file(suffix: str) -> str: # Callgrind outputs the number of executed instructions in its # trace. Search for the line containing "Collected". ir = "0" - for line in result.splitlines(): + for line in reversed(result.splitlines()): if "Collected" in line: ir = line.split()[-1] break