File tree Expand file tree Collapse file tree 1 file changed +12
-6
lines changed Expand file tree Collapse file tree 1 file changed +12
-6
lines changed Original file line number Diff line number Diff line change @@ -45,8 +45,12 @@ itest_status() {
45
45
}
46
46
47
47
itest_exit () {
48
- test -z " $1 " && return
49
- test $1 -gt 0 && exit 1
48
+ test_dir=$1
49
+ test_status=$2
50
+ test -z " $test_status " && return
51
+ test $test_status -eq 0 && return
52
+ echo " Error: $test_dir "
53
+ exit 1
50
54
}
51
55
52
56
# #
@@ -88,8 +92,10 @@ itest_status es6-babel $test_es6babel_status
88
92
itest_status es6-native $test_es6native_status
89
93
itest_status jsdom $test_jsdom_status
90
94
91
- itest_exit $test_cjs_status
92
- itest_exit $test_es6babel_status
93
- itest_exit $test_es6native_status
94
- itest_exit $test_jsdom_status
95
+ itest_exit cjs $test_cjs_exit
96
+ itest_exit es6-babel $test_es6babel_exit
97
+ itest_exit es6-native $test_es6native_exit
98
+ itest_exit jsdom $test_jsdom_exit
99
+
100
+ exit 0
95
101
You can’t perform that action at this time.
0 commit comments