Skip to content

Commit 7f64357

Browse files
Removed Test*.py scripts from excluded list and made it run via glob python test run script
1 parent a99bb07 commit 7f64357

8 files changed

+31
-8
lines changed

.github/workflows/tests.yaml

-7
Original file line numberDiff line numberDiff line change
@@ -518,13 +518,6 @@ jobs:
518518
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'
519519
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'
520520
scripts/run_in_python_env.sh out/venv './scripts/tests/TestTimeSyncTrustedTimeSourceRunner.py --all-clusters out/linux-x64-all-clusters-ipv6only-no-ble-no-wifi-tsan-clang-test-data-model-check-check-failure-die/chip-all-clusters-app'
521-
scripts/run_in_python_env.sh out/venv 'python3 ./src/python_testing/TestIdChecks.py'
522-
scripts/run_in_python_env.sh out/venv 'python3 ./src/python_testing/TestSpecParsingDeviceType.py'
523-
scripts/run_in_python_env.sh out/venv 'python3 ./src/python_testing/TestConformanceSupport.py'
524-
scripts/run_in_python_env.sh out/venv 'python3 ./src/python_testing/TestConformanceTest.py'
525-
scripts/run_in_python_env.sh out/venv 'python3 ./src/python_testing/TestChoiceConformanceSupport.py'
526-
scripts/run_in_python_env.sh out/venv 'python3 ./src/python_testing/TestMatterTestingSupport.py'
527-
scripts/run_in_python_env.sh out/venv 'python3 ./src/python_testing/TestSpecParsingSupport.py'
528521
scripts/run_in_python_env.sh out/venv 'python3 ./src/python_testing/test_testing/test_TC_ICDM_2_1.py'
529522
scripts/run_in_python_env.sh out/venv 'python3 ./src/python_testing/test_testing/test_IDM_10_4.py'
530523
scripts/run_in_python_env.sh out/venv 'python3 ./src/python_testing/test_testing/test_TC_SC_7_1.py'

src/python_testing/TestChoiceConformanceSupport.py

+4
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@
1515
# limitations under the License.
1616
#
1717

18+
# === BEGIN CI TEST ARGUMENTS ===
19+
# test-runner-runs: run1
20+
# === END CI TEST ARGUMENTS ===
21+
1822
import itertools
1923
import xml.etree.ElementTree as ElementTree
2024

src/python_testing/TestConformanceSupport.py

+4
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@
1515
# limitations under the License.
1616
#
1717

18+
# === BEGIN CI TEST ARGUMENTS ===
19+
# test-runner-runs: run1
20+
# === END CI TEST ARGUMENTS ===
21+
1822
import xml.etree.ElementTree as ElementTree
1923
from typing import Callable
2024

src/python_testing/TestConformanceTest.py

+4
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@
1515
# limitations under the License.
1616
#
1717

18+
# === BEGIN CI TEST ARGUMENTS ===
19+
# test-runner-runs: run1
20+
# === END CI TEST ARGUMENTS ===
21+
1822
from typing import Any
1923

2024
import chip.clusters as Clusters

src/python_testing/TestIdChecks.py

+4
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@
1515
# limitations under the License.
1616
#
1717

18+
# === BEGIN CI TEST ARGUMENTS ===
19+
# test-runner-runs: run1
20+
# === END CI TEST ARGUMENTS ===
21+
1822
from global_attribute_ids import (AttributeIdType, ClusterIdType, DeviceTypeIdType, attribute_id_type, cluster_id_type,
1923
device_type_id_type, is_valid_attribute_id, is_valid_cluster_id, is_valid_device_type_id)
2024
from matter_testing_support import MatterBaseTest, default_matter_test_main

src/python_testing/TestMatterTestingSupport.py

+4
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@
1515
# limitations under the License.
1616
#
1717

18+
# === BEGIN CI TEST ARGUMENTS ===
19+
# test-runner-runs: run1
20+
# === END CI TEST ARGUMENTS ===
21+
1822
import os
1923
import time
2024
import typing

src/python_testing/TestSpecParsingDeviceType.py

+5
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,11 @@
1414
# See the License for the specific language governing permissions and
1515
# limitations under the License.
1616
#
17+
18+
# === BEGIN CI TEST ARGUMENTS ===
19+
# test-runner-runs: run1
20+
# === END CI TEST ARGUMENTS ===
21+
1722
import xml.etree.ElementTree as ElementTree
1823

1924
import chip.clusters as Clusters

src/python_testing/TestSpecParsingSupport.py

+6-1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@
1515
# limitations under the License.
1616
#
1717

18+
# === BEGIN CI TEST ARGUMENTS ===
19+
# test-runner-runs: run1
20+
# === END CI TEST ARGUMENTS ===
21+
1822
import os
1923
import xml.etree.ElementTree as ElementTree
2024

@@ -37,7 +41,8 @@
3741

3842

3943
def single_attribute_cluster_xml(read_access: str, write_access: str, write_supported: str):
40-
xml_cluster = f'<cluster xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="types types.xsd cluster cluster.xsd" id="{CLUSTER_ID}" name="{CLUSTER_NAME}" revision="3">'
44+
xml_cluster = f'<cluster xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="types types.xsd cluster cluster.xsd" id="{
45+
CLUSTER_ID}" name="{CLUSTER_NAME}" revision="3">'
4146
revision_table = ('<revisionHistory>'
4247
'<revision revision="1" summary="Initial Release"/>'
4348
'<revision revision="2" summary="Some other revision"/>'

0 commit comments

Comments
 (0)