From fa8a0337493e4fe6bb09a114ec1cb917bcf892fc Mon Sep 17 00:00:00 2001 From: Gulshan Singh Date: Mon, 19 Dec 2022 19:06:41 -0800 Subject: [PATCH] Fail tests if an error occurs (#1445) Co-authored-by: Gulshan Singh --- tests/gdb-tests/tests.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/gdb-tests/tests.sh b/tests/gdb-tests/tests.sh index cada90a54..e90baefae 100755 --- a/tests/gdb-tests/tests.sh +++ b/tests/gdb-tests/tests.sh @@ -1,5 +1,8 @@ #!/bin/bash +set -o errexit +set -o pipefail + ROOT_DIR="$(readlink -f ../../)" GDB_INIT_PATH="$ROOT_DIR/gdbinit.py" COVERAGERC_PATH="$ROOT_DIR/pyproject.toml"