Skip to content

Commit a99387d

Browse files
authored
pytest improvements (commaai#1864)
* move these to pyproject so you can do pytest . * add comment for bug * add comment for bug
1 parent e41c157 commit a99387d

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

pyproject.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,5 @@ flake8-implicit-str-concat.allow-multiline=false
88

99
[tool.pytest.ini_options]
1010
# FIXME: pytest 8.0.0 now collects all files, stop pytest-cpp from running these
11-
addopts = "--ignore=test.sh --ignore=test_coverage.sh"
11+
# the `not Base` filter is needed due to a bug in pytest w/ unittest: https://github.com/pytest-dev/pytest/issues/11552
12+
addopts = "--ignore=test.sh --ignore=test_coverage.sh -n auto -k 'not Base'"

tests/safety/test.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,5 @@ cd $DIR
77
HW_TYPES=( 6 9 )
88
for hw_type in "${HW_TYPES[@]}"; do
99
echo "Testing HW_TYPE: $hw_type"
10-
HW_TYPE=$hw_type pytest -n auto test_*.py -k 'not Base'
10+
HW_TYPE=$hw_type pytest test_*.py
1111
done

0 commit comments

Comments
 (0)