Skip to content

Commit

Permalink
do not run misra_tests.py in parallel
Browse files Browse the repository at this point in the history
  • Loading branch information
firewave committed Dec 12, 2024
1 parent 31ee9c3 commit 5e8dfe8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/scriptcheck.yml
Original file line number Diff line number Diff line change
Expand Up @@ -136,18 +136,20 @@ jobs:
run: |
python tools/test_matchcompiler.py
# TODO: run with "-n auto" when misra_test.py can be run in parallel
# we cannot specify -Werror since xml/etree/ElementTree.py in Python 3.9/3.10 contains an unclosed file
- name: test addons
if: matrix.python-version == '3.9' || matrix.python-version == '3.10'
run: |
python -m pytest --strict-markers -vv -n auto addons/test
python -m pytest --strict-markers -vv -n 1 addons/test
env:
PYTHONPATH: ./addons

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

Expand Down
1 change: 1 addition & 0 deletions addons/test/misra_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ def checker():
return MisraChecker(settings)


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

0 comments on commit 5e8dfe8

Please sign in to comment.