From 84d1ca8f72b5c383e53278b99e74a250af377085 Mon Sep 17 00:00:00 2001 From: Alexey Lapshin Date: Mon, 23 Sep 2024 22:27:51 +0700 Subject: [PATCH] fix(gdbstub_runtime): fix test gdbstub_runtime which requiers elf file --- tools/ci/idf_pytest/constants.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/tools/ci/idf_pytest/constants.py b/tools/ci/idf_pytest/constants.py index dbf87d7640..5039f615f1 100644 --- a/tools/ci/idf_pytest/constants.py +++ b/tools/ci/idf_pytest/constants.py @@ -277,8 +277,14 @@ class PytestCase: if 'jtag' in self.env_markers or 'usb_serial_jtag' in self.env_markers: return True - if any('panic' in Path(app.path).parts for app in self.apps): - return True + cases_need_elf = [ + 'panic', + 'gdbstub_runtime' + ] + + for case in cases_need_elf: + if any(case in Path(app.path).parts for app in self.apps): + return True return False