瀏覽代碼

Fail the CI run if test results file is not present

Yegappan Lakshmanan 3 年之前
父節點
當前提交
09443d4f57
共有 1 個文件被更改,包括 8 次插入0 次删除
  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