From: Theodore Ts'o Date: Fri, 7 Jul 2023 19:27:04 +0000 (-0400) Subject: report: remove xmlns specifier X-Git-Tag: v2023.07.09^0 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=66fcf86bbaea42ee7cefc3cc4e97814e51fa0a84;p=xfstests-dev.git report: remove xmlns specifier By specifying "xmlns=https://git.kernel.org/.../xfstests-dev.git", this causes XML complaint parsers, such as the one used by the python junitparser library, to put all of the XML elements into a namespace, which then causes junitparser to toss its cookies. This can be worked-around in a test runner script via: sed -i.orig -e 's/xmlns=\".*\"//' "$RESULT_BASE/result.xml" but it's better not to include the xmlns line at all in the first place, since this may cause other users of fstests who are using the Python junitparser library a lot of headaches. Signed-off-by: Theodore Ts'o Reviewed-by: Darrick J. Wong Signed-off-by: Zorro Lang --- diff --git a/common/report b/common/report index 3c58f0e3..0e91e481 100644 --- a/common/report +++ b/common/report @@ -128,7 +128,6 @@ _xunit_make_section_report() local fstests_ns="https://git.kernel.org/pub/scm/fs/xfs/xfstests-dev.git" cat >> "$tmp_fn" << ENDL