From f29ba485c91cfc9d059556c643e175e61d44ead3 Mon Sep 17 00:00:00 2001 From: Keith Packard Date: Sun, 5 Jan 2025 16:52:48 -0800 Subject: [PATCH] test: Fix use of allowed_failures in pathological_tests.py 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 --- test/pathological_tests.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/pathological_tests.py b/test/pathological_tests.py index 80b5261dc..c2fdff64d 100644 --- a/test/pathological_tests.py +++ b/test/pathological_tests.py @@ -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