Skip to content

Commit 5e8dfe8

Browse files
committed
do not run misra_tests.py in parallel
1 parent 31ee9c3 commit 5e8dfe8

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

.github/workflows/scriptcheck.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,18 +136,20 @@ jobs:
136136
run: |
137137
python tools/test_matchcompiler.py
138138
139+
# TODO: run with "-n auto" when misra_test.py can be run in parallel
139140
# we cannot specify -Werror since xml/etree/ElementTree.py in Python 3.9/3.10 contains an unclosed file
140141
- name: test addons
141142
if: matrix.python-version == '3.9' || matrix.python-version == '3.10'
142143
run: |
143-
python -m pytest --strict-markers -vv -n auto addons/test
144+
python -m pytest --strict-markers -vv -n 1 addons/test
144145
env:
145146
PYTHONPATH: ./addons
146147

148+
# TODO: run with "-n auto" when misra_test.py can be run in parallel
147149
- name: test addons
148150
if: matrix.python-version != '3.9' && matrix.python-version != '3.10'
149151
run: |
150-
python -m pytest -Werror --strict-markers -vv -n auto addons/test
152+
python -m pytest -Werror --strict-markers -vv -n 1 addons/test
151153
env:
152154
PYTHONPATH: ./addons
153155

addons/test/misra_test.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ def checker():
3030
return MisraChecker(settings)
3131

3232

33+
# FIXME: files are generates in the source tree so it will cause issues if tests are run with xdist.
3334
@pytest.fixture
3435
def test_files():
3536
for f in TEST_SOURCE_FILES:

0 commit comments

Comments
 (0)