Skip to content

Commit

Permalink
rename test_misra.sh to prevent execution by Pytest
Browse files Browse the repository at this point in the history
  • Loading branch information
dzid26 committed Jun 13, 2024
1 parent ca3d384 commit e7fc9db
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ jobs:
run: ${{ env.RUN }} "scons -j$(nproc)"
- name: Run MISRA C:2012 analysis
timeout-minutes: 1
run: ${{ env.RUN }} "cd tests/misra && ./test_misra.sh"
run: ${{ env.RUN }} "cd tests/misra && ./cppcheck_misra_test.sh"
- name: MISRA mutation tests
timeout-minutes: 7
run: ${{ env.RUN }} "cd tests/misra && pytest -n8 test_mutation.py"
Expand Down
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
*.so
*.os
*.d
*.dump
a.out
*~
.#*
Expand All @@ -20,8 +19,9 @@ nosetests.xml
.mypy_cache/
.sconsign.dblite

# CTU info files generated by Cppcheck
# files generated by Cppcheck
*.*.ctu-info
*.*.dump

# safety coverage-related files
*.gcda
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion tests/misra/test_mutation.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,6 @@ def test_misra_mutation(fn, patch, should_fail, tmp_path):
assert r == 0

# run test
r = subprocess.run("SKIP_TABLES_DIFF=1 tests/misra/test_misra.sh", cwd=tmp_path, shell=True)
r = subprocess.run("SKIP_TABLES_DIFF=1 tests/misra/cppcheck_misra_test.sh", cwd=tmp_path, shell=True)
failed = r.returncode != 0
assert failed == should_fail

0 comments on commit e7fc9db

Please sign in to comment.