]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commitdiff
report: remove xmlns specifier v2023.07.09
authorTheodore Ts'o <tytso@mit.edu>
Fri, 7 Jul 2023 19:27:04 +0000 (15:27 -0400)
committerZorro Lang <zlang@kernel.org>
Sun, 9 Jul 2023 12:51:17 +0000 (20:51 +0800)
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 <tytso@mit.edu>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Signed-off-by: Zorro Lang <zlang@kernel.org>
common/report

index 3c58f0e3c232019b6988b2bddf1911fe2247f260..0e91e481f9725a9d566d2d48e6ccedf6afe50b14 100644 (file)
@@ -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
 <testsuite
- xmlns="$fstests_ns"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:schemaLocation="$fstests_ns $fstests_ns/tree/doc/xunit.xsd"