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/shtest-xunit-output.py | |
parent | b90f1dfe00896f6c2c65a15f935d965bfdcd846d (diff) | |
download | bcm5719-llvm-29770f7a629c8a1c4324ebe50f1c17cffbc58a6b.tar.gz bcm5719-llvm-29770f7a629c8a1c4324ebe50f1c17cffbc58a6b.zip |
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/shtest-xunit-output.py')
-rw-r--r-- | llvm/utils/lit/tests/shtest-xunit-output.py | 48 |
1 files changed, 24 insertions, 24 deletions
diff --git a/llvm/utils/lit/tests/shtest-xunit-output.py b/llvm/utils/lit/tests/shtest-xunit-output.py index 6e1f1424c83..c724cfa128d 100644 --- a/llvm/utils/lit/tests/shtest-xunit-output.py +++ b/llvm/utils/lit/tests/shtest-xunit-output.py @@ -4,78 +4,78 @@ # CHECK: <?xml version="1.0" encoding="UTF-8" ?> # CHECK-NEXT: <testsuites> -# CHECK-NEXT: <testsuite name='shtest-format' tests='23' failures='7' skipped='5'> +# CHECK-NEXT: <testsuite name="shtest-format" tests="23" failures="7" skipped="5"> -# CHECK: <testcase classname='shtest-format.shtest-format' name='argv0.txt' time='{{[0-9]+\.[0-9]+}}'/> +# CHECK: <testcase classname="shtest-format.shtest-format" name="argv0.txt" time="{{[0-9]+\.[0-9]+}}"/> -# CHECK: <testcase classname='shtest-format.external_shell' name='fail.txt' time='{{[0-9]+\.[0-9]+}}'> +# CHECK: <testcase classname="shtest-format.external_shell" name="fail.txt" time="{{[0-9]+\.[0-9]+}}"> # CHECK-NEXT: <failure{{[ ]*}}> # CHECK: </failure> # CHECK-NEXT: </testcase> -# CHECK: <testcase classname='shtest-format.external_shell' name='fail_with_bad_encoding.txt' time='{{[0-9]+\.[0-9]+}}'> +# CHECK: <testcase classname="shtest-format.external_shell" name="fail_with_bad_encoding.txt" time="{{[0-9]+\.[0-9]+}}"> # CHECK-NEXT: <failure{{[ ]*}}> # CHECK: </failure> # CHECK-NEXT: </testcase> -# CHECK: <testcase classname='shtest-format.external_shell' name='pass.txt' time='{{[0-9]+\.[0-9]+}}'/> +# CHECK: <testcase classname="shtest-format.external_shell" name="pass.txt" time="{{[0-9]+\.[0-9]+}}"/> -# CHECK: <testcase classname='shtest-format.shtest-format' name='fail.txt' time='{{[0-9]+\.[0-9]+}}'> +# CHECK: <testcase classname="shtest-format.shtest-format" name="fail.txt" time="{{[0-9]+\.[0-9]+}}"> # CHECK-NEXT: <failure{{[ ]*}}> # CHECK: </failure> # CHECK-NEXT: </testcase> -# CHECK: <testcase classname='shtest-format.shtest-format' name='no-test-line.txt' time='{{[0-9]+\.[0-9]+}}'> +# CHECK: <testcase classname="shtest-format.shtest-format" name="no-test-line.txt" time="{{[0-9]+\.[0-9]+}}"> # CHECK-NEXT: <failure{{[ ]*}}> # CHECK: </failure> # CHECK-NEXT: </testcase> -# CHECK: <testcase classname='shtest-format.shtest-format' name='pass.txt' time='{{[0-9]+\.[0-9]+}}'/> +# CHECK: <testcase classname="shtest-format.shtest-format" name="pass.txt" time="{{[0-9]+\.[0-9]+}}"/> -# CHECK: <testcase classname='shtest-format.shtest-format' name='requires-any-missing.txt' time='{{[0-9]+\.[0-9]+}}'> +# CHECK: <testcase classname="shtest-format.shtest-format" name="requires-any-missing.txt" time="{{[0-9]+\.[0-9]+}}"> # CHECK-NEXT:<skipped message="Skipping because of: a-missing-feature || a-missing-feature-2" /> -# CHECK: <testcase classname='shtest-format.shtest-format' name='requires-any-present.txt' time='{{[0-9]+\.[0-9]+}}'/> +# CHECK: <testcase classname="shtest-format.shtest-format" name="requires-any-present.txt" time="{{[0-9]+\.[0-9]+}}"/> -# CHECK: <testcase classname='shtest-format.shtest-format' name='requires-missing.txt' time='{{[0-9]+\.[0-9]+}}'> +# CHECK: <testcase classname="shtest-format.shtest-format" name="requires-missing.txt" time="{{[0-9]+\.[0-9]+}}"> # CHECK-NEXT:<skipped message="Skipping because of: a-missing-feature" /> -# CHECK: <testcase classname='shtest-format.shtest-format' name='requires-present.txt' time='{{[0-9]+\.[0-9]+}}'/> +# CHECK: <testcase classname="shtest-format.shtest-format" name="requires-present.txt" time="{{[0-9]+\.[0-9]+}}"/> -# CHECK: <testcase classname='shtest-format.shtest-format' name='requires-star.txt' time='{{[0-9]+\.[0-9]+}}'> +# CHECK: <testcase classname="shtest-format.shtest-format" name="requires-star.txt" time="{{[0-9]+\.[0-9]+}}"> # CHECK-NEXT: <failure{{[ ]*}}> # CHECK: </failure> # CHECK-NEXT: </testcase> -# CHECK: <testcase classname='shtest-format.shtest-format' name='requires-triple.txt' time='{{[0-9]+\.[0-9]+}}'> +# CHECK: <testcase classname="shtest-format.shtest-format" name="requires-triple.txt" time="{{[0-9]+\.[0-9]+}}"> # CHECK-NEXT:<skipped message="Skipping because of: x86_64" /> -# CHECK: <testcase classname='shtest-format.shtest-format' name='unsupported-expr-false.txt' time='{{[0-9]+\.[0-9]+}}'/> +# CHECK: <testcase classname="shtest-format.shtest-format" name="unsupported-expr-false.txt" time="{{[0-9]+\.[0-9]+}}"/> -# CHECK: <testcase classname='shtest-format.shtest-format' name='unsupported-expr-true.txt' time='{{[0-9]+\.[0-9]+}}'> +# CHECK: <testcase classname="shtest-format.shtest-format" name="unsupported-expr-true.txt" time="{{[0-9]+\.[0-9]+}}"> # CHECK-NEXT:<skipped message="Skipping because of configuration." /> -# CHECK: <testcase classname='shtest-format.shtest-format' name='unsupported-star.txt' time='{{[0-9]+\.[0-9]+}}'> +# CHECK: <testcase classname="shtest-format.shtest-format" name="unsupported-star.txt" time="{{[0-9]+\.[0-9]+}}"> # CHECK-NEXT: <failure{{[ ]*}}> # CHECK: </failure> # CHECK-NEXT: </testcase> -# CHECK: <testcase classname='shtest-format.unsupported_dir' name='some-test.txt' time='{{[0-9]+\.[0-9]+}}'> +# CHECK: <testcase classname="shtest-format.unsupported_dir" name="some-test.txt" time="{{[0-9]+\.[0-9]+}}"> # CHECK-NEXT:<skipped message="Skipping because of configuration." /> -# CHECK: <testcase classname='shtest-format.shtest-format' name='xfail-expr-false.txt' time='{{[0-9]+\.[0-9]+}}'/> +# CHECK: <testcase classname="shtest-format.shtest-format" name="xfail-expr-false.txt" time="{{[0-9]+\.[0-9]+}}"/> -# CHECK: <testcase classname='shtest-format.shtest-format' name='xfail-expr-true.txt' time='{{[0-9]+\.[0-9]+}}'/> +# CHECK: <testcase classname="shtest-format.shtest-format" name="xfail-expr-true.txt" time="{{[0-9]+\.[0-9]+}}"/> -# CHECK: <testcase classname='shtest-format.shtest-format' name='xfail-feature.txt' time='{{[0-9]+\.[0-9]+}}'/> +# CHECK: <testcase classname="shtest-format.shtest-format" name="xfail-feature.txt" time="{{[0-9]+\.[0-9]+}}"/> -# CHECK: <testcase classname='shtest-format.shtest-format' name='xfail-target.txt' time='{{[0-9]+\.[0-9]+}}'/> +# CHECK: <testcase classname="shtest-format.shtest-format" name="xfail-target.txt" time="{{[0-9]+\.[0-9]+}}"/> -# CHECK: <testcase classname='shtest-format.shtest-format' name='xfail.txt' time='{{[0-9]+\.[0-9]+}}'/> +# CHECK: <testcase classname="shtest-format.shtest-format" name="xfail.txt" time="{{[0-9]+\.[0-9]+}}"/> -# CHECK: <testcase classname='shtest-format.shtest-format' name='xpass.txt' time='{{[0-9]+\.[0-9]+}}'> +# CHECK: <testcase classname="shtest-format.shtest-format" name="xpass.txt" time="{{[0-9]+\.[0-9]+}}"> # CHECK-NEXT: <failure{{[ ]*}}> # CHECK: </failure> # CHECK-NEXT: </testcase> |