Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cukinia: accept space char in suite name #60

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions cukinia
Original file line number Diff line number Diff line change
Expand Up @@ -929,7 +929,7 @@ _junitxml_end()
# arg1: output file for the <testsuite> block
_junitxml_end_suite()
{
local name=$__suite_name
local name="$__suite_name"
local outfile="$1"
local timestamp
local failures
Expand Down Expand Up @@ -967,8 +967,8 @@ _junitxml_end_suite()
cat >>$outfile <<EOF
<testsuite name="$name" package="$name" errors="$errors" tests="$tests" failures="$failures" timestamp="$timestamp" time="$seconds">
EOF
cat $__logfile_tmp.$name >>$outfile
rm -f $__logfile_tmp.$name
cat "$__logfile_tmp.$name" >>$outfile
rm -f "$__logfile_tmp.$name"
echo " </testsuite>" >>$outfile
}

Expand All @@ -979,7 +979,7 @@ _junitxml_add_suite()
local name="$1"

# strip the name from any fancy character
name="$(echo $name | sed -e 's/[^a-zA-Z0-9_]//g')"
name="$(echo $name | sed -e 's/[^a-zA-Z0-9_ ]//g')"

if [ -z "$name" ]; then
return 1
Expand Down