Commit 1e7e2cf9 authored by Andreas Klöckner's avatar Andreas Klöckner
Browse files

Add support for $PYTEST_FLAGS env var

parent 6c2b705e
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -36,7 +36,7 @@ if [ -d test ]; then
    # 10 GiB should be enough for just about anyone
    ulimit -m $(python -c 'print(1024*1024*10)')

    ${PY_EXE} -m pytest -rw --durations=10 --tb=native  --junitxml=pytest.xml -rxs $TESTABLES
    ${PY_EXE} -m pytest -rw --durations=10 --tb=native  --junitxml=pytest.xml -rxs $PYTEST_FLAGS $TESTABLES

    # Avoid https://github.com/pytest-dev/pytest/issues/754:
    # add --tb=native
+1 −1
Original line number Diff line number Diff line
@@ -35,6 +35,6 @@ if [ -d test ]; then
    ulimit -m $(python -c 'print(1024*1024*10)')

    # Need to set both _TEST and _CTX because doctests do not use _TEST.
    ${PY_EXE} -m pytest -rw --durations=10 --tb=native  --junitxml=pytest.xml -rxsw $TESTABLES
    ${PY_EXE} -m pytest -rw --durations=10 --tb=native  --junitxml=pytest.xml -rxsw $PYTEST_FLAGS $TESTABLES
  fi
fi