From 1105762e40e16bcbeff97da772f7a840a90d9091 Mon Sep 17 00:00:00 2001 From: Ubaldo Tiberi Date: Thu, 15 Aug 2024 22:26:35 +0200 Subject: [PATCH] Updated tests script --- test/run_tests.sh | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/test/run_tests.sh b/test/run_tests.sh index f4c6799..048e58a 100644 --- a/test/run_tests.sh +++ b/test/run_tests.sh @@ -19,6 +19,8 @@ if [ -z "$VIM_PRG" ]; then fi # Setup dummy VIMRC file +# OBS: You can also run the following lines in the test file because it is +# source before running the tests anyway. See Vim9-conversion-aid VIMRC="VIMRC" echo "set runtimepath+=.." > "$VIMRC" echo "filetype plugin on" >> "$VIMRC" @@ -48,14 +50,13 @@ RunTestsInFile() { if grep -qw FAIL results.txt; then echo "ERROR: Some test(s) in $testfile failed." - if [ "$GITHUB" -eq 1 ]; then - rm VIMRC - exit 3 - fi + if [ "$GITHUB" -eq 1 ]; then + exit 3 + fi + else + echo "SUCCESS: All the tests in $testfile passed." + echo fi - - echo "SUCCESS: All the tests in $testfile passed." - echo } for testfile in $TESTS