@@ -160,6 +160,13 @@ def _GetInDevelopmentTests() -> Set[str]:
160
160
}
161
161
162
162
163
+ def _GetChipToolUnsupportedTests () -> Set [str ]:
164
+ """Tests that fail in chip-tool for some reason"""
165
+ return {
166
+ "TestDiagnosticLogsDownloadCommand" , # chip-tool does not implement a bdx download command.
167
+ }
168
+
169
+
163
170
def _GetDarwinFrameworkToolUnsupportedTests () -> Set [str ]:
164
171
"""Tests that fail in darwin-framework-tool for some reason"""
165
172
return {
@@ -258,6 +265,7 @@ def _GetChipReplUnsupportedTests() -> Set[str]:
258
265
"Test_TC_RVCCLEANM_3_3.yaml" , # chip-repl does not support EqualityCommands pseudo-cluster
259
266
"Test_TC_BINFO_2_1.yaml" , # chip-repl does not support EqualityCommands pseudo-cluster
260
267
"TestDiagnosticLogs.yaml" , # chip-repl does not implement a BDXTransferServerDelegate
268
+ "TestDiagnosticLogsDownloadCommand.yaml" , # chip-repl does not implement the bdx download command
261
269
}
262
270
263
271
@@ -340,7 +348,7 @@ def tests_with_command(chip_tool: str, is_manual: bool):
340
348
)
341
349
342
350
343
- def _AllFoundYamlTests (treat_repl_unsupported_as_in_development : bool , treat_dft_unsupported_as_in_development : bool , use_short_run_name : bool ):
351
+ def _AllFoundYamlTests (treat_repl_unsupported_as_in_development : bool , treat_dft_unsupported_as_in_development : bool , treat_chip_tool_unsupported_as_in_development : bool , use_short_run_name : bool ):
344
352
"""
345
353
use_short_run_name should be true if we want the run_name to be "Test_ABC" instead of "some/path/Test_ABC.yaml"
346
354
"""
@@ -350,7 +358,8 @@ def _AllFoundYamlTests(treat_repl_unsupported_as_in_development: bool, treat_dft
350
358
extra_slow_tests = _GetExtraSlowTests ()
351
359
in_development_tests = _GetInDevelopmentTests ()
352
360
chip_repl_unsupported_tests = _GetChipReplUnsupportedTests ()
353
- treat_dft_unsupported_as_in_development_tests = _GetDarwinFrameworkToolUnsupportedTests ()
361
+ dft_unsupported_as_in_development_tests = _GetDarwinFrameworkToolUnsupportedTests ()
362
+ chip_tool_unsupported_as_in_development_tests = _GetChipToolUnsupportedTests ()
354
363
purposeful_failure_tests = _GetPurposefulFailureTests ()
355
364
356
365
for path in _AllYamlTests ():
@@ -384,7 +393,10 @@ def _AllFoundYamlTests(treat_repl_unsupported_as_in_development: bool, treat_dft
384
393
else :
385
394
run_name = str (path )
386
395
387
- if treat_dft_unsupported_as_in_development and run_name in treat_dft_unsupported_as_in_development_tests :
396
+ if treat_dft_unsupported_as_in_development and run_name in dft_unsupported_as_in_development_tests :
397
+ tags .add (TestTag .IN_DEVELOPMENT )
398
+
399
+ if treat_chip_tool_unsupported_as_in_development and run_name in chip_tool_unsupported_as_in_development_tests :
388
400
tags .add (TestTag .IN_DEVELOPMENT )
389
401
390
402
yield TestDefinition (
@@ -396,17 +408,17 @@ def _AllFoundYamlTests(treat_repl_unsupported_as_in_development: bool, treat_dft
396
408
397
409
398
410
def AllReplYamlTests ():
399
- for test in _AllFoundYamlTests (treat_repl_unsupported_as_in_development = True , treat_dft_unsupported_as_in_development = False , use_short_run_name = False ):
411
+ for test in _AllFoundYamlTests (treat_repl_unsupported_as_in_development = True , treat_dft_unsupported_as_in_development = False , treat_chip_tool_unsupported_as_in_development = False , use_short_run_name = False ):
400
412
yield test
401
413
402
414
403
415
def AllChipToolYamlTests ():
404
- for test in _AllFoundYamlTests (treat_repl_unsupported_as_in_development = False , treat_dft_unsupported_as_in_development = False , use_short_run_name = True ):
416
+ for test in _AllFoundYamlTests (treat_repl_unsupported_as_in_development = False , treat_dft_unsupported_as_in_development = False , treat_chip_tool_unsupported_as_in_development = True , use_short_run_name = True ):
405
417
yield test
406
418
407
419
408
420
def AllDarwinFrameworkToolYamlTests ():
409
- for test in _AllFoundYamlTests (treat_repl_unsupported_as_in_development = False , treat_dft_unsupported_as_in_development = True , use_short_run_name = True ):
421
+ for test in _AllFoundYamlTests (treat_repl_unsupported_as_in_development = False , treat_dft_unsupported_as_in_development = True , treat_chip_tool_unsupported_as_in_development = False , use_short_run_name = True ):
410
422
yield test
411
423
412
424
0 commit comments