Skip to content

Commit cf8bd0a

Browse files
Fix the tests.yaml to run the execution script for running python test scripts (#34853)
* Fix the script execution link to run test scripts * Fixed the CI arguments design pattern for TC_EWATERHTR scripts * Excluded the scripts still under fixes * Removed TC_SEAR tests which were still undecided on the CI arguments * Removed TC_OCC_3_1 and TC_OCC_3_2 since there are CI issues to be followed up for the test cases below that implements manually controlling sensor device for the occupancy state ON/OFF change
1 parent 78a8357 commit cf8bd0a

File tree

5 files changed

+17
-3
lines changed

5 files changed

+17
-3
lines changed

.github/workflows/tests.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -506,6 +506,7 @@ jobs:
506506
run: |
507507
mkdir -p out/trace_data
508508
scripts/run_in_python_env.sh out/venv './scripts/tests/run_python_test.py --load-from-env /tmp/test_env.yaml --script src/controller/python/test/test_scripts/mobile-device-test.py'
509+
scripts/run_in_python_env.sh out/venv 'python3 ./src/python_testing/execute_python_tests.py --env-file /tmp/test_env.yaml --search-directory src/python_testing'
509510
scripts/run_in_python_env.sh out/venv './scripts/tests/run_python_test.py --script "src/python_testing/TestMatterTestingSupport.py" --script-args "--trace-to json:out/trace_data/test-{SCRIPT_BASE_NAME}.json --trace-to perfetto:out/trace_data/test-{SCRIPT_BASE_NAME}.perfetto"'
510511
scripts/run_in_python_env.sh out/venv './scripts/tests/run_python_test.py --script "src/python_testing/TestSpecParsingSupport.py" --script-args "--trace-to json:out/trace_data/test-{SCRIPT_BASE_NAME}.json --trace-to perfetto:out/trace_data/test-{SCRIPT_BASE_NAME}.perfetto"'
511512
scripts/run_in_python_env.sh out/venv './scripts/tests/TestTimeSyncTrustedTimeSourceRunner.py'

src/python_testing/TC_EWATERHTR_2_1.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@
1818
# See https://github.com/project-chip/connectedhomeip/blob/master/docs/testing/python.md#defining-the-ci-test-arguments
1919
# for details about the block below.
2020
#
21-
# === BEGIN CI TEST ARGUMENTS ===# test-runner-runs: run1
21+
# === BEGIN CI TEST ARGUMENTS ===
22+
# test-runner-runs: run1
2223
# test-runner-run/run1/app: ${ALL_CLUSTERS_APP}
2324
# test-runner-run/run1/factoryreset: True
2425
# test-runner-run/run1/quiet: True

src/python_testing/TC_EWATERHTR_2_2.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@
1818
# See https://github.com/project-chip/connectedhomeip/blob/master/docs/testing/python.md#defining-the-ci-test-arguments
1919
# for details about the block below.
2020
#
21-
# === BEGIN CI TEST ARGUMENTS ===# test-runner-runs: run1
21+
# === BEGIN CI TEST ARGUMENTS ===
22+
# test-runner-runs: run1
2223
# test-runner-run/run1/app: ${ALL_CLUSTERS_APP}
2324
# test-runner-run/run1/factoryreset: True
2425
# test-runner-run/run1/quiet: True

src/python_testing/TC_EWATERHTR_2_3.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@
1717
# See https://github.com/project-chip/connectedhomeip/blob/master/docs/testing/python.md#defining-the-ci-test-arguments
1818
# for details about the block below.
1919
#
20-
# === BEGIN CI TEST ARGUMENTS ===# test-runner-runs: run1
20+
# === BEGIN CI TEST ARGUMENTS ===
21+
# test-runner-runs: run1
2122
# test-runner-run/run1/app: ${ALL_CLUSTERS_APP}
2223
# test-runner-run/run1/factoryreset: True
2324
# test-runner-run/run1/quiet: True

src/python_testing/execute_python_tests.py

+10
Original file line numberDiff line numberDiff line change
@@ -64,14 +64,24 @@ def main(search_directory, env_file):
6464
"TC_ECOINFO_2_1.py",
6565
"TC_ECOINFO_2_2.py",
6666
"TC_EWATERHTRBase.py",
67+
"TC_EWATERHTR_2_1.py",
68+
"TC_EWATERHTR_2_2.py",
69+
"TC_EWATERHTR_2_3.py",
6770
"TC_EnergyReporting_Utils.py",
6871
"TC_OpstateCommon.py",
6972
"TC_pics_checker.py",
7073
"TC_TMP_2_1.py",
7174
"TC_MCORE_FS_1_1.py",
7275
"TC_MCORE_FS_1_2.py",
7376
"TC_MCORE_FS_1_3.py",
77+
"TC_OCC_3_1.py",
78+
"TC_OCC_3_2.py",
7479
"TC_BRBINFO_4_1.py",
80+
"TC_SEAR_1_2.py",
81+
"TC_SEAR_1_3.py",
82+
"TC_SEAR_1_4.py",
83+
"TC_SEAR_1_5.py",
84+
"TC_SEAR_1_6.py",
7585
"TestCommissioningTimeSync.py",
7686
"TestConformanceSupport.py",
7787
"TestChoiceConformanceSupport.py",

0 commit comments

Comments
 (0)