From 52e6fefb3df694c15c2407d431d4e0155589d11d Mon Sep 17 00:00:00 2001 From: Fu Hanxi Date: Thu, 1 Dec 2022 10:16:04 +0800 Subject: [PATCH] ci(pytest): stop adding xtal_40mhz when running test case for other targets --- conftest.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/conftest.py b/conftest.py index 7d0fd57510..fbe53111d2 100644 --- a/conftest.py +++ b/conftest.py @@ -411,7 +411,12 @@ class IdfPytestEmbedded: # add 'xtal_40mhz' tag as a default tag for esp32c2 target for item in items: - if 'esp32c2' in item_marker_names(item) and 'xtal_26mhz' not in item_marker_names(item): + # only add this marker for esp32c2 cases + if ( + self.target == 'esp32c2' + and 'esp32c2' in item_marker_names(item) + and 'xtal_26mhz' not in item_marker_names(item) + ): item.add_marker('xtal_40mhz') # filter all the test cases with "nightly_run" marker