From: Anthony PERARD <anthony.perard@vates.tech>
Signed-off-by: Anthony PERARD <anthony.perard@vates.tech>
---
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 21dcd9b063..f1b7e02e63 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
On Wed, Jul 30, 2025 at 05:26:02PM +0200, Anthony PERARD wrote: > From: Anthony PERARD <anthony.perard@vates.tech> > > Signed-off-by: Anthony PERARD <anthony.perard@vates.tech> Is it still an issue? AFAIR similar issue was fixed together with fixing xml upload hanging. > --- > 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 21dcd9b063..f1b7e02e63 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 > -- Best Regards, Marek Marczykowski-Górecki Invisible Things Lab
On Sat, Aug 09, 2025 at 06:25:28PM +0200, Marek Marczykowski-Górecki wrote:
> On Wed, Jul 30, 2025 at 05:26:02PM +0200, Anthony PERARD wrote:
> > From: Anthony PERARD <anthony.perard@vates.tech>
> >
> > Signed-off-by: Anthony PERARD <anthony.perard@vates.tech>
>
> Is it still an issue? AFAIR similar issue was fixed together with fixing
> xml upload hanging.
It was an issue in June:
https://lore.kernel.org/xen-devel/20250603124222.52057-9-anthony@xenproject.org/
And it still is:
https://gitlab.com/xen-project/people/marmarek/xen/-/jobs/10969191455
> WARNING: Found 75 too many lines in junit.
Thanks,
--
Anthony PERARD
© 2016 - 2025 Red Hat, Inc.