diff options
author | Chris Matthews <cmatthews5@apple.com> | 2018-05-25 00:31:36 +0000 |
---|---|---|
committer | Chris Matthews <cmatthews5@apple.com> | 2018-05-25 00:31:36 +0000 |
commit | 29770f7a629c8a1c4324ebe50f1c17cffbc58a6b (patch) | |
tree | e5879cddf6c5a4d8f1141af2801bee28b65689c9 /llvm/utils/lit/tests/xunit-output.py | |
parent | b90f1dfe00896f6c2c65a15f935d965bfdcd846d (diff) | |
download | llvm-29770f7a629c8a1c4324ebe50f1c17cffbc58a6b.zip llvm-29770f7a629c8a1c4324ebe50f1c17cffbc58a6b.tar.gz llvm-29770f7a629c8a1c4324ebe50f1c17cffbc58a6b.tar.bz2 |
Use quoteattr to ensure we make well formed attributes
We were making malformed XML on tests with ' in the name. Switch to
using saxutils to set all of our attributes, so it can handle quotes
etc correctly.
llvm-svn: 333249
Diffstat (limited to 'llvm/utils/lit/tests/xunit-output.py')
-rw-r--r-- | llvm/utils/lit/tests/xunit-output.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/utils/lit/tests/xunit-output.py b/llvm/utils/lit/tests/xunit-output.py index 845ffdb5..930768e 100644 --- a/llvm/utils/lit/tests/xunit-output.py +++ b/llvm/utils/lit/tests/xunit-output.py @@ -9,8 +9,8 @@ # CHECK: <?xml version="1.0" encoding="UTF-8" ?> # CHECK: <testsuites> -# CHECK: <testsuite name='test-data' tests='1' failures='1' skipped='0'> -# CHECK: <testcase classname='test-data.test-data' name='bad&name.ini' time='{{[0-1]}}.{{[0-9]+}}'> +# CHECK: <testsuite name="test-data" tests="1" failures="1" skipped="0"> +# CHECK: <testcase classname="test-data.test-data" name="bad&name.ini" time="{{[0-1]}}.{{[0-9]+}}"> # CHECK-NEXT: <failure ><![CDATA[& < > ]]]]><![CDATA[> &"]]></failure> # CHECK: </testsuite> # CHECK: </testsuites> |