Fix run_test.sh failure logic

The script looks for PASS/SKIP/FAIL in the output and if found, it
returns the error code it got from QEMU. But a failing test still
returns zero because the emulation was sucessful.

Split grepping for PASS/SKIP and FAIL, and force a non-zero return code
for the latter.

Test: make failing-test
Change-Id: I62ba1ab522a9544024882e276161905f7cf84c1f
1 file changed
tree: 8c2a4370b72a3586c710927da528b5c6fffb3632
  1. aarch64/
  2. crosvm/
  3. cuttlefish/
  4. kvm-unit-tests/
  5. common.inc
  6. Makefile