mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
ci: add support nightly jobs for pytest cases
This commit is contained in:
parent
7242578c33
commit
97725036db
10
conftest.py
10
conftest.py
@ -315,6 +315,16 @@ class IdfPytestEmbedded:
|
||||
for _target in [*SUPPORTED_TARGETS, *PREVIEW_TARGETS]:
|
||||
item.add_marker(_target)
|
||||
|
||||
# filter all the test cases with "nightly_run" marker
|
||||
if os.getenv('NIGHTLY_RUN') == '1':
|
||||
items[:] = [
|
||||
item for item in items if 'nightly_run' in item_marker_names(item)
|
||||
]
|
||||
else:
|
||||
items[:] = [
|
||||
item for item in items if 'nightly_run' not in item_marker_names(item)
|
||||
]
|
||||
|
||||
# filter all the test cases with "--target"
|
||||
if self.target:
|
||||
items[:] = [
|
||||
|
@ -29,6 +29,7 @@ markers =
|
||||
|
||||
# env markers
|
||||
generic: tests should be run on generic runners
|
||||
nightly_run: tests should be executed as part of the nightly trigger pipeline
|
||||
flash_suspend: support flash suspend feature
|
||||
ip101: connected via wired 10/100M ethernet
|
||||
lan8720: connected via LAN8720 ethernet transceiver
|
||||
|
Loading…
Reference in New Issue
Block a user