From 7b514a097fe3336609d584cff2da42d1d270bf84 Mon Sep 17 00:00:00 2001 From: Simon McVittie Date: Mon, 28 Jun 2021 10:52:59 +0100 Subject: [PATCH] libtest: Add directive and 'set -e' for better shellcheck diagnostics Signed-off-by: Simon McVittie --- tests/libtest.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/libtest.sh b/tests/libtest.sh index 1ab2df44..611d9d0e 100644 --- a/tests/libtest.sh +++ b/tests/libtest.sh @@ -1,3 +1,5 @@ +# shellcheck shell=bash + # Source library for shell script tests. # Add non-bubblewrap-specific code to libtest-core.sh instead. # @@ -18,6 +20,8 @@ # Free Software Foundation, Inc., 59 Temple Place - Suite 330, # Boston, MA 02111-1307, USA. +set -e + if [ -n "${G_TEST_SRCDIR:-}" ]; then test_srcdir="${G_TEST_SRCDIR}/tests" else