Skip to content
Permalink
Browse files

Execute pytest without maxfail by default

Change-Id: I474307e7c797dfbd5a2bc974ae251df46e4d883f
  • Loading branch information...
LarsMichelsen committed Jul 28, 2019
1 parent 47a9252 commit f6218792d12075ee7f593b501366f955df681c1a
@@ -140,7 +140,7 @@ try {
sh "mount -t overlay overlay -o lowerdir=${TEST_DATA}/git,upperdir=${WORKSPACE}/$DISTRO-dest,workdir=${WORKSPACE}/$DISTRO-work ${WORKSPACE}/$DISTRO-dest"
sh 'ls -lah'
dir (DISTRO + '-dest') {
sh "PYTEST_ADDOPTS='--junitxml=/omd/sites/${OMD_SITE}/junit.xml -o junit_suite_name=$DISTRO --maxfail 300' make -C tests EDITION=${EDITION} VERSION=${CMK_VERSION} OMD_SITE=${OMD_SITE} test-integration"
sh "PYTEST_ADDOPTS='--junitxml=/omd/sites/${OMD_SITE}/junit.xml -o junit_suite_name=$DISTRO' make -C tests EDITION=${EDITION} VERSION=${CMK_VERSION} OMD_SITE=${OMD_SITE} test-integration"
}
}
}
@@ -289,7 +289,7 @@ try {
stage('Packaging Tests') {
try {
dir("${DAILY_DATA}/git/tests") {
withEnv(["VERSION_PATH=${ARCHIVE_DIR}", "PYTEST_ADDOPTS='--junitxml=${WORKSPACE}/junit.xml --maxfail=300'"]) {
withEnv(["VERSION_PATH=${ARCHIVE_DIR}", "PYTEST_ADDOPTS='--junitxml=${WORKSPACE}/junit.xml'"]) {
sh "make VERSION=${CMK_VERS} test-packaging"
}
}
@@ -3,7 +3,7 @@ testpaths = tests
# -p no:cacheprovider -> Disable caching. This is needed to make the
# integration tests work which are executed as site user.
# --durations=10: Show the 10 slowest tests
addopts = -p no:cacheprovider -rs -v --maxfail=1 --durations=10
addopts = -p no:cacheprovider -rs -v --durations=10
markers =
checks: Run all existing test cases for checks.
filterwarnings =

0 comments on commit f621879

Please sign in to comment.
You can’t perform that action at this time.