github.com/rohankumardubey/nomad@v0.11.8/scripts/test_check.sh (about)

     1  #!/usr/bin/env bash
     2  echo "Exit code: $(cat exit-code)" >> test.log; 
     3  grep -A10 'panic: test timed out' test.log || true; 
     4  grep -A1 -- '--- SKIP:' test.log || true; 
     5  grep -A1 -- '--- FAIL:' test.log || true; 
     6  grep '^FAIL' test.log || true;
     7  exit_code=$(cat exit-code)
     8  echo "$exit_code "
     9  if [ "${exit_code}" == "0" ]; then echo "PASS" ; exit 0 ; else echo "TESTS FAILED"; exit 1 ; fi 
    10