From 33b7c33ab447a0463e414c6cf8f9a2cd2d047a20 Mon Sep 17 00:00:00 2001 From: KatolaZ Date: Wed, 9 Aug 2017 21:29:45 +0100 Subject: added more tests about basic scorsh setup --- test/scorsh_testsuite | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) mode change 100644 => 100755 test/scorsh_testsuite (limited to 'test/scorsh_testsuite') diff --git a/test/scorsh_testsuite b/test/scorsh_testsuite old mode 100644 new mode 100755 index 57954f7..a631a29 --- a/test/scorsh_testsuite +++ b/test/scorsh_testsuite @@ -22,10 +22,10 @@ trap cleanup 0 HUP INT TRAP TERM QUIT ## func cleanup(){ ## do stuff here - rm -rf ${SCORSH_REPO} - rm -rf ${SCORSH_APP} - rm -rf ${REMOTE_REPO} - rm -rf ${LOCAL_REPO} + # rm -rf ${SCORSH_REPO} + # rm -rf ${SCORSH_APP} + # rm -rf ${REMOTE_REPO} + # rm -rf ${LOCAL_REPO} echo "Exiting..." } @@ -37,6 +37,10 @@ run_tests(){ export PASSED_TESTS FAILED_TESTS TOT_TESTS echo "\033[4;7;36m-+-+- running tests in $t -+-+-\033[0m" $t + if [ $? -ne 0 ]; then + echo "test $t aborted unexpectedly. Aborting" + exit 2 + fi eval $(cat ${STATUS_FILE}) echo "\033[35m-------------------------------------------------------------\033[0m" @@ -52,6 +56,8 @@ PASSED_TESTS=0 FAILED_TESTS=0 TOT_TESTS=0 +rm ${STATUS_FILE} + run_tests report_results -- cgit v1.2.3