diff options
author | Theodore Ts'o <tytso@mit.edu> | 2023-07-07 15:27:04 -0400 |
---|---|---|
committer | Zorro Lang <zlang@kernel.org> | 2023-07-09 20:51:17 +0800 |
commit | 66fcf86bbaea42ee7cefc3cc4e97814e51fa0a84 (patch) | |
tree | 98b6095c56ad4cfcc138fa916322f72d83a0bf43 | |
parent | 8bab8ef9872ecf9bce7381b6e784063c92c2cad3 (diff) | |
download | xfstests-dev-66fcf86bbaea42ee7cefc3cc4e97814e51fa0a84.tar.gz |
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 <tytso@mit.edu>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Signed-off-by: Zorro Lang <zlang@kernel.org>
-rw-r--r-- | common/report | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/common/report b/common/report index 3c58f0e3c2..0e91e481f9 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 <testsuite - xmlns="$fstests_ns" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="$fstests_ns $fstests_ns/tree/doc/xunit.xsd" |