Skip to content

Commit

Permalink
test: Fix use of allowed_failures in pathological_tests.py
Browse files Browse the repository at this point in the history
The test needs to check if the test description is a valid key in the
allowed_failures dictionary instead of attempting to fetch from the
dictionary as most of the descriptions are not present in the
dictionary leading to a missing key error at runtime.

Signed-off-by: Keith Packard <[email protected]>
  • Loading branch information
keith-packard committed Jan 6, 2025
1 parent 2cd7a1a commit f29ba48
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/pathological_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,12 +146,12 @@ def run_test(inp, regex):
p.terminate()
p.join()
print('[TIMED OUT]')
if allowed_failures[description]:
if description in allowed_failures:
ignored += 1
else:
errored += 1
elif p.exitcode != 0:
if allowed_failures[description]:
if description in allowed_failures:
ignored += 1
else:
errored += 1
Expand Down

0 comments on commit f29ba48

Please sign in to comment.