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() {
4545}
4646
4747itest_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
5054}
5155
5256# #
@@ -88,8 +92,10 @@ itest_status es6-babel $test_es6babel_status
8892itest_status es6-native $test_es6native_status
8993itest_status jsdom $test_jsdom_status
9094
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
95101
You can’t perform that action at this time.
0 commit comments