From 12ad84e0416335325ab0976542a41bf698ecb825 Mon Sep 17 00:00:00 2001 From: Cecille Freeman Date: Wed, 26 Jul 2023 11:14:08 -0400 Subject: [PATCH 1/2] Tests flag got missed in the config TEST: tested with --tests flag, saw only requested test run --- src/python_testing/matter_testing_support.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/python_testing/matter_testing_support.py b/src/python_testing/matter_testing_support.py index 7570f3ddcbe415..4c6a3132832d3d 100644 --- a/src/python_testing/matter_testing_support.py +++ b/src/python_testing/matter_testing_support.py @@ -818,6 +818,7 @@ def convert_args_to_matter_config(args: argparse.Namespace) -> MatterTestConfig: config.paa_trust_store_path = args.paa_trust_store_path config.ble_interface_id = args.ble_interface_id config.pics = {} if args.PICS is None else read_pics_from_file(args.PICS) + config.tests = args.tests config.controller_node_id = args.controller_node_id config.trace_to = args.trace_to From 29382110459fc1221ecfc9d1f94491c4d7de92ad Mon Sep 17 00:00:00 2001 From: Cecille Freeman Date: Thu, 27 Jul 2023 10:18:09 -0400 Subject: [PATCH 2/2] python: proof why we need stronly typed languages --- src/python_testing/matter_testing_support.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/python_testing/matter_testing_support.py b/src/python_testing/matter_testing_support.py index 4c6a3132832d3d..008848177b3271 100644 --- a/src/python_testing/matter_testing_support.py +++ b/src/python_testing/matter_testing_support.py @@ -818,7 +818,7 @@ def convert_args_to_matter_config(args: argparse.Namespace) -> MatterTestConfig: config.paa_trust_store_path = args.paa_trust_store_path config.ble_interface_id = args.ble_interface_id config.pics = {} if args.PICS is None else read_pics_from_file(args.PICS) - config.tests = args.tests + config.tests = [] if args.tests is None else args.tests config.controller_node_id = args.controller_node_id config.trace_to = args.trace_to