File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -37,6 +37,8 @@ set_up()
3737
3838 # Initialize git
3939 git init -b develop
40+ git config --local user.email " action@github.com"
41+ git config --local user.name " GitHub Action"
4042 git add . && git commit -m " Initial commit"
4143}
4244
@@ -58,20 +60,18 @@ assert()
5860 MESSAGE=$@
5961
6062 echo " FAILED: $MESSAGE "
61- exit $CODE
63+ exit 1
6264}
6365
6466get_hash ()
6567{
6668 md5sum " $1 " | awk ' {print $1}'
6769}
6870
69- # Begin testing
70- set +e
71-
7271# Verify the tests
7372assert " -d $TESTS " " Unable to locate tests"
7473
74+ # Begin testing
7575for FILE in " $TESTS " /* ; do
7676
7777 NAME=` basename " $FILE " `
@@ -80,7 +80,9 @@ for FILE in "$TESTS"/*; do
8080 set_up > /dev/null 2>&1
8181
8282 # Execute the test
83+ set +e
8384 . $FILE
85+ set -e
8486
8587 RESULT=$?
8688 if [ $RESULT -ne 0 ]; then
@@ -89,6 +91,7 @@ for FILE in "$TESTS"/*; do
8991 fi
9092
9193 echo " $NAME passed."
94+ echo " "
9295done
9396
9497echo " All tests passed!"
You can’t perform that action at this time.
0 commit comments