Explorar el Código

Fail the CI run if test results file is not present

Yegappan Lakshmanan hace 3 años
padre
commit
09443d4f57
Se han modificado 1 ficheros con 8 adiciones y 0 borrados
  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