From dd4f1eff8bb0fa256dec479ffd4ceea52f8bcf80 Mon Sep 17 00:00:00 2001 From: Astra Date: Wed, 31 Jul 2024 18:58:01 +0900 Subject: [PATCH] Fix skipping logic --- scripts/flippigator/nfc/test_emulate_mifare_classic.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/scripts/flippigator/nfc/test_emulate_mifare_classic.py b/scripts/flippigator/nfc/test_emulate_mifare_classic.py index 5861c50d1b..9573684330 100644 --- a/scripts/flippigator/nfc/test_emulate_mifare_classic.py +++ b/scripts/flippigator/nfc/test_emulate_mifare_classic.py @@ -2156,8 +2156,14 @@ class TestEmulateClassic: retry_count = 6 if expected not in result: - if any(error in error for error in skip_errors) and "rdbl" not in command: - # Some errors can be safely ingored because their results will be double-checked with read commands later + if ( + any( + any(error in output for error in skip_errors) + for output in result + ) + and "rdbl" not in command + ): + # Some errors can be safely ignored because their results will be double-checked with read commands later continue else: while retry_count > 0: