From 9d3cdebddb1312d1b09582de9cd4910f25098fd9 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 89f3bbe1c1..406baa19f2 100644 --- a/tools/ci/idf_pytest/constants.py +++ b/tools/ci/idf_pytest/constants.py @@ -271,8 +271,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