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
0ca373d0
Commit
0ca373d0
authored
Aug 22, 2016
by
Ivan Shvedunov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix overlong junit filename prefixes (2nd attempt)
parent
a6d37f7e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
6 deletions
+7
-6
test.sh
hack/make-rules/test.sh
+7
-6
No files found.
hack/make-rules/test.sh
View file @
0ca373d0
...
...
@@ -155,12 +155,13 @@ junitFilenamePrefix() {
return
fi
mkdir
-p
"
${
KUBE_JUNIT_REPORT_DIR
}
"
local
KUBE_TEST_API_NO_SLASH
=
"
${
KUBE_TEST_API
//\//-
}
"
# This filename isn't parsed by anything,
# and we must avoid exceeding 255 character filename limit.
KUBE_TEST_API_NO_SLASH
=
"
${
KUBE_TEST_API_NO_SLASH
//k8s.io-/
}
"
KUBE_TEST_API_NO_SLASH
=
"
$(
echo
"
$KUBE_TEST_API_NO_SLASH
"
|sed
's/\([0-9]\)alpha\([0-9]\)/\1a\2/g;s/\([0-9]\)beta\([0-9]\)/\1b\2/g'
)
"
echo
"
${
KUBE_JUNIT_REPORT_DIR
}
/junit_
${
KUBE_TEST_API_NO_SLASH
}
_
$(
kube::util::sortable_date
)
"
# This filename isn't parsed by anything, and we must avoid
# exceeding 255 character filename limit. KUBE_TEST_API
# barely fits there and in coverage mode test names are
# appended to generated file names, easily exceeding
# 255 chars in length. So let's just sha1sum it.
local
KUBE_TEST_API_HASH
=
"
$(
echo
-n
"
${
KUBE_TEST_API
//\//-
}
"
|sha1sum|awk
'{print $1}'
)
"
echo
"
${
KUBE_JUNIT_REPORT_DIR
}
/junit_
${
KUBE_TEST_API_HASH
}
_
$(
kube::util::sortable_date
)
"
}
produceJUnitXMLReport
()
{
...
...
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