@@ -1008,7 +1008,10 @@ run_e2e () (
1008
1008
# the full Kubernetes E2E testsuite while only running a few tests.
1009
1009
move_junit () {
1010
1010
if ls " ${ARTIFACTS} " /junit_[0-9]* .xml 2> /dev/null > /dev/null; then
1011
- run_filter_junit -t=" External.Storage|CSI.mock.volume" -o " ${ARTIFACTS} /junit_${name} .xml" " ${ARTIFACTS} " /junit_[0-9]* .xml && rm -f " ${ARTIFACTS} " /junit_[0-9]* .xml
1011
+ mkdir -p " ${ARTIFACTS} /junit/${name} " &&
1012
+ mkdir -p " ${ARTIFACTS} /junit/steps" &&
1013
+ run_filter_junit -t=" External.Storage|CSI.mock.volume" -o " ${ARTIFACTS} /junit/steps/junit_${name} .xml" " ${ARTIFACTS} " /junit_[0-9]* .xml &&
1014
+ mv " ${ARTIFACTS} " /junit_[0-9]* .xml " ${ARTIFACTS} /junit/${name} /"
1012
1015
fi
1013
1016
}
1014
1017
trap move_junit EXIT
@@ -1085,13 +1088,14 @@ kubectl exec "$pod" -c "${CSI_PROW_SANITY_CONTAINER}" -- /bin/sh -c "\${CHECK_PA
1085
1088
EOF
1086
1089
1087
1090
chmod u+x " ${CSI_PROW_WORK} " /* dir_in_pod.sh
1091
+ mkdir -p " ${ARTIFACTS} /junit/steps"
1088
1092
1089
1093
# This cannot run in parallel, because -csi.junitfile output
1090
1094
# from different Ginkgo nodes would go to the same file. Also the
1091
1095
# staging and target directories are the same.
1092
1096
run_with_loggers " ${CSI_PROW_WORK} /csi-sanity" \
1093
1097
-ginkgo.v \
1094
- -csi.junitfile " ${ARTIFACTS} /junit_sanity.xml" \
1098
+ -csi.junitfile " ${ARTIFACTS} /junit/steps/ junit_sanity.xml" \
1095
1099
-csi.endpoint " dns:///$( docker inspect -f ' {{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' csi-prow-control-plane) :$( kubectl get " services/${CSI_PROW_SANITY_SERVICE} " -o " jsonpath={..nodePort}" ) " \
1096
1100
-csi.stagingdir " /tmp/staging" \
1097
1101
-csi.mountdir " /tmp/mount" \
@@ -1121,7 +1125,8 @@ make_test_to_junit () {
1121
1125
# Plain make-test.xml was not delivered as text/xml by the web
1122
1126
# server and ignored by spyglass. It seems that the name has to
1123
1127
# match junit*.xml.
1124
- out=" ${ARTIFACTS} /junit_make_test.xml"
1128
+ out=" ${ARTIFACTS} /junit/steps/junit_make_test.xml"
1129
+ mkdir -p " $( dirname " $out " ) "
1125
1130
testname=
1126
1131
echo " <testsuite>" >> " $out "
1127
1132
@@ -1385,8 +1390,8 @@ main () {
1385
1390
fi
1386
1391
1387
1392
# Merge all junit files into one. This gets rid of duplicated "skipped" tests.
1388
- if ls " ${ARTIFACTS} " /junit_* .xml 2> /dev/null >&2 ; then
1389
- run_filter_junit -o " ${CSI_PROW_WORK } /junit_final.xml" " ${ARTIFACTS} " /junit_ * .xml && rm " ${ARTIFACTS} " / junit_* .xml && mv " ${CSI_PROW_WORK} /junit_final.xml " " ${ARTIFACTS} "
1393
+ if ls " ${ARTIFACTS} " /junit/steps/ junit_* .xml 2> /dev/null >&2 ; then
1394
+ run_filter_junit -o " ${ARTIFACTS } /junit_final.xml" " ${ARTIFACTS} " /junit/steps/ junit_* .xml
1390
1395
fi
1391
1396
1392
1397
return " $ret "
0 commit comments