Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
590ea991
Commit
590ea991
authored
Jun 13, 2017
by
ymqytw
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
change junit output format
parent
1480f6c3
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
sh2ju.sh
third_party/forked/shell2junit/sh2ju.sh
+5
-5
No files found.
third_party/forked/shell2junit/sh2ju.sh
View file @
590ea991
...
@@ -137,11 +137,6 @@ function juLog() {
...
@@ -137,11 +137,6 @@ function juLog() {
content
=
"
$content
content
=
"
$content
<testcase assertions=
\"
1
\"
name=
\"
$name
\"
time=
\"
$time
\"
classname=
\"
$class
\"
>
<testcase assertions=
\"
1
\"
name=
\"
$name
\"
time=
\"
$time
\"
classname=
\"
$class
\"
>
$failure
$failure
<system-out>
<![CDATA[
$out
]]>
</system-out>
<system-err>
<system-err>
<![CDATA[
<![CDATA[
$errMsg
$errMsg
...
@@ -160,17 +155,22 @@ $errMsg
...
@@ -160,17 +155,22 @@ $errMsg
# file exists. Need to append to it. If we remove the testsuite end tag, we can just add it in after.
# file exists. Need to append to it. If we remove the testsuite end tag, we can just add it in after.
sed
-i
"s^</testsuite>^^g"
$juDIR
/junit-
$suite
.xml
## remove testSuite so we can add it later
sed
-i
"s^</testsuite>^^g"
$juDIR
/junit-
$suite
.xml
## remove testSuite so we can add it later
sed
-i
"s^</testsuites>^^g"
$juDIR
/junit-
$suite
.xml
cat
<<
EOF
>> "
$juDIR
/junit-
$suite
.xml"
cat
<<
EOF
>> "
$juDIR
/junit-
$suite
.xml"
$content
$content
</testsuite>
</testsuite>
</testsuites>
EOF
EOF
else
else
# no file exists. Adding a new file
# no file exists. Adding a new file
cat
<<
EOF
> "
$juDIR
/junit-
$suite
.xml"
cat
<<
EOF
> "
$juDIR
/junit-
$suite
.xml"
<?xml version="1.0" encoding="UTF-8"?>
<testsuites>
<testsuite failures="
$errors
" assertions="
$assertions
" name="
$suite
" tests="1" errors="
$errors
" time="
$total
">
<testsuite failures="
$errors
" assertions="
$assertions
" name="
$suite
" tests="1" errors="
$errors
" time="
$total
">
$content
$content
</testsuite>
</testsuite>
</testsuites>
EOF
EOF
fi
fi
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment