Skip to content

Commit

Permalink
Merge pull request #634 from KKoukiou/wiki-report-always
Browse files Browse the repository at this point in the history
tests: allow wiki-reporting even if test suite partially failed
  • Loading branch information
KKoukiou authored Feb 13, 2025
2 parents d4d7b0e + 29045b2 commit 4439106
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion test/run
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,14 @@ esac
if [ -n "${TEST_COMPOSE-}" ]; then
COMPOSE_A_PACKAGES="https://kojipkgs.fedoraproject.org/compose/rawhide/$TEST_COMPOSE/compose/Everything/x86_64/os/Packages/a/"
ANACONDA_WEBUI_TAG=$(curl -s $COMPOSE_A_PACKAGES | grep -oP '>anaconda-webui-[0-9]+' | cut -d "-" -f3)

# FIXME: Keep test/wiki-report.py from the current commit
# This is a workaround till test/wiki-report is part of the releases we are testing
cp test/wiki-report.py /tmp/wiki-report.py

git checkout $ANACONDA_WEBUI_TAG

cp /tmp/wiki-report.py test/wiki-report.py
fi

# We need to know if a TEST_COMPOSE is specified before we start downloading the test images
Expand All @@ -61,9 +68,13 @@ fi
if [ -z "${TEST_OS-}" ]; then
TEST_OS=fedora-rawhide-boot
fi

# Allow wiki-reporting even if test suite partially failed
set +e

export TEST_JOBS TEST_OS
J=$(($TEST_JOBS/4)); [ $J -ge 1 ] || J=1; TEST_AUDIT_NO_SELINUX=1 test/common/run-tests --test-dir test/ --jobs $J $RUN_OPTS

if [ -n "${TEST_COMPOSE-}" ]; then
test/wiki-report "test/report.json"
test/wiki-report.py "test/report.json"
fi

0 comments on commit 4439106

Please sign in to comment.