Skip to content

Commit 8f5294b

Browse files
troglobitrical
authored andcommitted
self_test: to ease debugging, extend error message when tests fail
Signed-off-by: Joachim Wiberg <[email protected]>
1 parent be34f79 commit 8f5294b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

self_test/run.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ def run(self, workers, args=None, expected_return=0, grep=None):
6767
print(result.stderr, file=sys.stderr)
6868

6969
# Ensure the return code is as expected
70-
assert result.returncode == expected_return, f"Failed: Got unexpected retun code {result.returncode}"
70+
assert result.returncode == expected_return, f"Failed: Got unexpected return code {result.returncode}. stderr: {result.stderr}"
7171

7272
# If grep is provided, ensure the output contains the specified text
7373
if grep:

0 commit comments

Comments
 (0)