ci: add xtal_40mhz tag for c2 tests

This commit is contained in:
laokaiyao
2022-07-19 14:19:44 +08:00
committed by Kevin (Lao Kaiyao)
parent 45ad46eb27
commit ba235c5615
6 changed files with 26 additions and 17 deletions

View File

@@ -320,6 +320,11 @@ class IdfPytestEmbedded:
for _target in [*SUPPORTED_TARGETS, *PREVIEW_TARGETS]:
item.add_marker(_target)
# 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):
item.add_marker('xtal_40mhz')
# filter all the test cases with "nightly_run" marker
if os.getenv('INCLUDE_NIGHTLY_RUN') == '1':
# Do not filter nightly_run cases