Pārlūkot izejas kodu

Fail the CI run if test results file is not present

Yegappan Lakshmanan 3 gadi atpakaļ
vecāks
revīzija
09443d4f57
1 mainītis faili ar 8 papildinājumiem un 0 dzēšanām
  1. 8 0
      test/run_mru_tests.sh

+ 8 - 0
test/run_mru_tests.sh

@@ -8,6 +8,14 @@ VIM_CMD="$VIMPRG -N -u NONE -U NONE -i NONE --not-a-term"
 $VIM_CMD -S unit_tests.vim
 
 echo "MRU unit test results"
+echo
+
+if [ ! -f results.txt ]
+then
+  echo "ERROR: Test results file 'results.txt' is not found"
+  exit 1
+fi
+
 cat results.txt
 
 echo