File tree Expand file tree Collapse file tree 2 files changed +24
-5
lines changed Expand file tree Collapse file tree 2 files changed +24
-5
lines changed Original file line number Diff line number Diff line change @@ -18,14 +18,23 @@ prow-presubmit-check: \
18
18
19
19
.PHONY : prow-presubmit-check-e2e
20
20
prow-presubmit-check-e2e : \
21
- test-e2e verify-kapply-e2e
21
+ install-column-apt test-e2e verify-kapply-e2e
22
22
23
23
fix :
24
24
go fix ./...
25
25
26
26
fmt :
27
27
go fmt ./...
28
28
29
+ # Install column (required by verify-kapply-e2e)
30
+ # Update is included because the kubekins-e2e container build strips out the package cache.
31
+ # In newer versions of debian, column is in the bsdextrautils package,
32
+ # but in buster (used by kubekins-e2e) it's in bsdmainutils.
33
+ .PHONY : install-column-apt
34
+ install-column-apt :
35
+ apt-get update
36
+ apt-get install -y bsdmainutils
37
+
29
38
install-stringer :
30
39
(which
$( GOPATH) /bin/stringer
|| go install golang.org/x/tools/cmd/
[email protected] )
31
40
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ GREEN='\033[0;32m'
11
11
RED=' \033[0;31m'
12
12
NC=' \033[0m' # No Color
13
13
14
- succeeded=0
14
+ results=()
15
15
failed=0
16
16
17
17
function run_test() {
@@ -27,19 +27,29 @@ for path in examples/alphaTestExamples/*.md; do
27
27
if run_test " ${path} " ; then
28
28
echo
29
29
echo -e " ${GREEN} Example Test Succeeded: ${test_name}${NC} "
30
- let " succeeded+=1 "
30
+ results+=( " ${test_name} \t ${GREEN} Succeeded ${NC} " )
31
31
else
32
32
echo
33
33
echo -e " ${RED} Example Test Failed: ${test_name}${NC} "
34
34
let " failed+=1"
35
+ results+=(" ${test_name} \t${RED} Failed${NC} " )
35
36
fi
36
37
echo
37
38
done
38
39
40
+ (
41
+ echo -e " TEST\tRESULT"
42
+ for result in " ${results[@]} " ; do
43
+ echo -e " ${result} "
44
+ done
45
+ ) | column -t
46
+
47
+ echo
48
+
39
49
if [[ ${failed} -gt 0 ]]; then
40
- echo -e " ${RED} Example Tests Complete (succeeded: ${succeeded} , failed: ${failed} ) ${NC} "
50
+ echo -e " ${RED} Example Tests Failed ${NC} "
41
51
exit 1
42
52
else
43
- echo -e " ${GREEN} Example Tests Complete (succeeded: ${succeeded} , failed: ${failed} ) ${NC} "
53
+ echo -e " ${GREEN} Example Tests Succeeded ${NC} "
44
54
exit 0
45
55
fi
You can’t perform that action at this time.
0 commit comments