Testsuite: fail after first error

This makes debugging much easier, because the relevant log messages
before the crash can always be found at the bottom of the log files,
and not somewhere in the middle.
This commit is contained in:
Oliver Smith 2018-07-14 02:31:45 +02:00
parent f121dce59b
commit 0adc6a1f4b
3 changed files with 5 additions and 5 deletions

View File

@ -28,7 +28,7 @@ set -o pipefail
./pmbootstrap.py kconfig check
# test_aports
python -m pytest -vv --cov=pmb --tb=native ./test/test_aports.py
python -m pytest -vv -x --cov=pmb --tb=native ./test/test_aports.py
# check_checksums
./test/check_checksums.py --build

View File

@ -28,10 +28,10 @@ yes ''| ./pmbootstrap.py init
set -o pipefail
# test_aportgen
python -m pytest -vv --cov=pmb --tb=native ./test/test_aportgen.py
python -m pytest -vv -x --cov=pmb --tb=native ./test/test_aportgen.py
# test_soname_bump
python -m pytest -vv --cov=pmb --tb=native ./test/test_soname_bump.py
python -m pytest -vv -x --cov=pmb --tb=native ./test/test_soname_bump.py
# test_upstream_compatibility
python -m pytest -vv --cov=pmb --tb=native ./test/test_upstream_compatibility.py
python -m pytest -vv -x --cov=pmb --tb=native ./test/test_upstream_compatibility.py

View File

@ -38,4 +38,4 @@ done
# Note: Pytest is called through python so that this is compatible with
# running from a venv (e.g. in gitlab CI)
# shellcheck disable=SC2086
python -m pytest -vv --cov=pmb $enabled --tb=native
python -m pytest -vv -x --cov=pmb $enabled --tb=native