aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools
diff options
context:
space:
mode:
authorGravatar Damien Martin-Guillerez <dmarting@google.com>2016-02-15 09:07:29 +0000
committerGravatar Damien Martin-Guillerez <dmarting@google.com>2016-02-15 10:34:07 +0100
commite1acf84a6bfa87406719f537f58dfea70ba24a75 (patch)
treed493d5e535504ba40bdd22d9009baf24ec9e566b /tools
parentbc1cb3c6e072bd8b29f849f9fcc48c05e3c7cbfa (diff)
Fix default XML file generated by tests
Fixes #888. -- MOS_MIGRATED_REVID=114671702
Diffstat (limited to 'tools')
-rwxr-xr-xtools/test/test-setup.sh8
1 files changed, 5 insertions, 3 deletions
diff --git a/tools/test/test-setup.sh b/tools/test/test-setup.sh
index c5df493cc7..6fa814aeda 100755
--- a/tools/test/test-setup.sh
+++ b/tools/test/test-setup.sh
@@ -55,15 +55,17 @@ if [ -n "${XML_OUTPUT_FILE-}" -a ! -f "${XML_OUTPUT_FILE-}" ]; then
# Create a default XML output file if the test runner hasn't generated it
if (( $exitCode != 0 )); then
errors=1
- error_msg="<error message=\"exited with error code $exitCode\"/></error>"
+ error_msg="<error message=\"exited with error code $exitCode\"></error>"
else
errors=0
error_msg=
fi
cat <<EOF >${XML_OUTPUT_FILE}
<?xml version="1.0" encoding="UTF-8"?>
-<testsuites name="$1" tests="1" failure="0" errors="$errors">
- <testcase name="$1" status="run">$error_msg</testcase>
+<testsuites>
+ <testsuite name="$1" tests="1" failures="0" errors="$errors">
+ <testcase name="$1" status="run">$error_msg</testcase>
+ </testsuite>
</testsuites>
EOF
fi