File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 4545 - NPROC=2
4646 - TEST_ARGS=--no-pep8
4747 - NOSE_ARGS="-j $NPROC"
48- - PYTEST_ARGS="-ra --timeout=300 --durations=25 --cov-report= --cov=lib" # -n $NPROC
48+ - PYTEST_ARGS="-ra --timeout=300 --durations=25 --cov-report= --cov=lib -n $NPROC"
4949 - PYTHON_ARGS=
5050 - DELETE_FONT_CACHE=
5151 - USE_PYTEST=false
52- # - PYTHONHASHSEED=0 # Workaround for pytest-xdist flaky colletion order
53- # # https://github.com/pytest-dev/pytest/issues/920
54- # # https://github.com/pytest-dev/pytest/issues/1075
5552
5653matrix :
5754 include :
@@ -166,6 +163,12 @@ script:
166163 gdb -return-child-result -batch -ex r -ex bt --args python $PYTHON_ARGS tests.py $NOSE_ARGS $TEST_ARGS
167164 fi
168165 else
166+ # Workaround for pytest-xdist flaky colletion order
167+ # https://github.com/pytest-dev/pytest/issues/920
168+ # https://github.com/pytest-dev/pytest/issues/1075
169+ export PYTHONHASHSEED=$(shuf -i 1-4294967295 -n 1)
170+ echo PYTHONHASHSEED=$PYTHONHASHSEED
171+
169172 echo The following args are passed to pytest $PYTEST_ARGS
170173 py.test $PYTEST_ARGS $TEST_ARGS
171174 fi
You can’t perform that action at this time.
0 commit comments