1919SUPPORTED_TARGETS = ['esp32' , 'esp32s2' , 'esp32c3' , 'esp32s3' , 'esp32c2' , 'esp32c6' , 'esp32h2' , 'esp32p4' ]
2020PREVIEW_TARGETS : t .List [str ] = [] # this PREVIEW_TARGETS excludes 'linux' target
2121DEFAULT_SDKCONFIG = 'default'
22+ DEFAULT_LOGDIR = 'pytest-embedded'
2223
2324TARGET_MARKERS = {
2425 'esp32' : 'support esp32 target' ,
@@ -200,7 +201,7 @@ def targets(self) -> t.List[str]:
200201 for _t in [app .target for app in self .apps ]:
201202 if _t in self .target_markers :
202203 skip = False
203- warnings .warn (f'`pytest.mark.[TARGET]` defined in parametrize for multi-dut test cases is deprecated. '
204+ warnings .warn (f'`pytest.mark.[TARGET]` defined in parametrize for multi-dut test cases is deprecated. ' # noqa: W604
204205 f'Please use parametrize instead for test case { self .item .nodeid } ' )
205206 break
206207
@@ -233,7 +234,7 @@ def _get_temp_markers_disabled_targets(marker_name: str) -> t.Set[str]:
233234 # temp markers should always use keyword arguments `targets` and `reason`
234235 if not temp_marker .kwargs .get ('targets' ) or not temp_marker .kwargs .get ('reason' ):
235236 raise ValueError (
236- f'`{ marker_name } ` should always use keyword arguments `targets` and `reason`. '
237+ f'`{ marker_name } ` should always use keyword arguments `targets` and `reason`. ' # noqa: W604
237238 f'For example: '
238239 f'`@pytest.mark.{ marker_name } (targets=["esp32"], reason="IDF-xxxx, will fix it ASAP")`'
239240 )
@@ -292,7 +293,7 @@ def all_built_in_app_lists(self, app_lists: t.Optional[t.List[str]] = None) -> t
292293 bin_found [i ] = 1
293294
294295 if sum (bin_found ) == 0 :
295- msg = f'Skip test case { self .name } because all following binaries are not listed in the app lists: '
296+ msg = f'Skip test case { self .name } because all following binaries are not listed in the app lists: ' # noqa: E713
296297 for app in self .apps :
297298 msg += f'\n - { app .build_dir } '
298299
@@ -303,7 +304,7 @@ def all_built_in_app_lists(self, app_lists: t.Optional[t.List[str]] = None) -> t
303304 return None
304305
305306 # some found, some not, looks suspicious
306- msg = f'Found some binaries of test case { self .name } are not listed in the app lists.'
307+ msg = f'Found some binaries of test case { self .name } are not listed in the app lists.' # noqa: E713
307308 for i , app in enumerate (self .apps ):
308309 if bin_found [i ] == 0 :
309310 msg += f'\n - { app .build_dir } '
0 commit comments