@@ -31,16 +31,6 @@ export KUBE_CACHE_MUTATION_DETECTOR
31
31
KUBE_PANIC_WATCH_DECODE_ERROR=" ${KUBE_PANIC_WATCH_DECODE_ERROR:- true} "
32
32
export KUBE_PANIC_WATCH_DECODE_ERROR
33
33
34
- # Handle case where OS has sha#sum commands, instead of shasum.
35
- if which shasum > /dev/null 2>&1 ; then
36
- SHA1SUM=" shasum -a1"
37
- elif which sha1sum > /dev/null 2>&1 ; then
38
- SHA1SUM=" sha1sum"
39
- else
40
- echo " Failed to find shasum or sha1sum utility." >&2
41
- exit 1
42
- fi
43
-
44
34
kube::test::find_dirs () {
45
35
(
46
36
cd " ${KUBE_ROOT} "
@@ -182,14 +172,7 @@ junitFilenamePrefix() {
182
172
return
183
173
fi
184
174
mkdir -p " ${KUBE_JUNIT_REPORT_DIR} "
185
- # This filename isn't parsed by anything, and we must avoid
186
- # exceeding 255 character filename limit. KUBE_TEST_API
187
- # barely fits there and in coverage mode test names are
188
- # appended to generated file names, easily exceeding
189
- # 255 chars in length. So let's just use a sha1 hash of it.
190
- local KUBE_TEST_API_HASH
191
- KUBE_TEST_API_HASH=" $( echo -n " ${KUBE_TEST_API// \/ / -} " | ${SHA1SUM} | awk ' {print $1}' ) "
192
- echo " ${KUBE_JUNIT_REPORT_DIR} /junit_${KUBE_TEST_API_HASH} _$( kube::util::sortable_date) "
175
+ echo " ${KUBE_JUNIT_REPORT_DIR} /junit_$( kube::util::sortable_date) "
193
176
}
194
177
195
178
verifyAndSuggestPackagePath () {
@@ -274,9 +257,8 @@ runTests() {
274
257
fi
275
258
276
259
# Create coverage report directories.
277
- KUBE_TEST_API_HASH=" $( echo -n " ${KUBE_TEST_API// \/ / -} " | ${SHA1SUM} | awk ' {print $1}' ) "
278
260
if [[ -z " ${KUBE_COVER_REPORT_DIR} " ]]; then
279
- cover_report_dir=" /tmp/k8s_coverage/${KUBE_TEST_API_HASH} / $ ( kube::util::sortable_date) "
261
+ cover_report_dir=" /tmp/k8s_coverage/$( kube::util::sortable_date) "
280
262
else
281
263
cover_report_dir=" ${KUBE_COVER_REPORT_DIR} "
282
264
fi
0 commit comments