[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [XEN PATCH 8/9] CI: Workaround extra content in junit
From: Anthony PERARD <anthony.perard@xxxxxxxxxx> Signed-off-by: Anthony PERARD <anthony.perard@xxxxxxxxxx> --- automation/scripts/qubes-x86-64.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/automation/scripts/qubes-x86-64.sh b/automation/scripts/qubes-x86-64.sh index 7a4c5ae489..6ab8412f45 100755 --- a/automation/scripts/qubes-x86-64.sh +++ b/automation/scripts/qubes-x86-64.sh @@ -298,6 +298,12 @@ TEST_RESULT=$? if [ -n "$retrieve_xml" ]; then nc -w 10 "$SUT_ADDR" 8080 > tests-junit.xml </dev/null + # Workaround duplicated data been received + sed -i.old '/^<\/testsuites>/q' tests-junit.xml > /dev/null + extra_line_in_junit=$(($(wc -l < tests-junit.xml.old) - $(wc -l < tests-junit.xml))) + if [ $extra_line_in_junit -gt 0 ]; then + echo "WARNING: Found $extra_line_in_junit too many lines in junit." + fi # Findout if one of the test failed if ! grep -q '</testsuites>' tests-junit.xml; then echo "ERROR: tests-junit.xml is incomplete or missing." -- Anthony PERARD
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |