File tree 1 file changed +7
-4
lines changed
1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change 45
45
- NPROC=2
46
46
- TEST_ARGS=--no-pep8
47
47
- 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"
49
49
- PYTHON_ARGS=
50
50
- DELETE_FONT_CACHE=
51
51
- 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
55
52
56
53
matrix :
57
54
include :
@@ -166,6 +163,12 @@ script:
166
163
gdb -return-child-result -batch -ex r -ex bt --args python $PYTHON_ARGS tests.py $NOSE_ARGS $TEST_ARGS
167
164
fi
168
165
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
+
169
172
echo The following args are passed to pytest $PYTEST_ARGS
170
173
py.test $PYTEST_ARGS $TEST_ARGS
171
174
fi
You can’t perform that action at this time.
0 commit comments