Skip to content

Commit 03dccb6

Browse files
committed
Fix pytest args/config, with a recent pytest the previous args/config didn't work anymore.
1 parent 902900b commit 03dccb6

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

extras/scripts/postsubmit-helper.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ then
252252
cd tests
253253
run_make
254254

255-
python3 -m pytest -n auto -r a "$SOURCES_PATH"/tests
255+
python3 -m pytest -n auto -r a
256256
cd ..
257257

258258
make install

tests/CMakeLists.txt

+1
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,7 @@ file(GENERATE OUTPUT "${CMAKE_CURRENT_BINARY_DIR}/pytest.ini"
155155
CONTENT "
156156
[pytest]
157157
testpaths = \"${CMAKE_CURRENT_SOURCE_DIR}\"
158+
pythonpath = \"${CMAKE_CURRENT_SOURCE_DIR}\"
158159
addopts = -r a
159160
timeout = 300
160161
")

0 commit comments

Comments
 (0)