Skip to content

Commit

Permalink
Updated tests script
Browse files Browse the repository at this point in the history
  • Loading branch information
ubaldot committed Aug 15, 2024
1 parent c8685ca commit 1105762
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions test/run_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 1105762

Please sign in to comment.