From e78b8875312d263ee9ad67e740610019d25ef7ad Mon Sep 17 00:00:00 2001 From: Martin Schwenke Date: Sat, 18 Mar 2017 20:38:32 +1100 Subject: [PATCH] ctdb-tests: Catch cases where mktemp fails due to missing TMPDIR TMPDIR sometimes goes missing during autobuild. When that happens the error messages produced by CTDB tests are not very helpful. This should make it clear. Signed-off-by: Martin Schwenke Reviewed-by: Amitay Isaacs Autobuild-User(master): Amitay Isaacs Autobuild-Date(master): Mon Mar 20 08:53:02 CET 2017 on sn-devel-144 --- ctdb/tests/run_tests.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ctdb/tests/run_tests.sh b/ctdb/tests/run_tests.sh index f128d959252..d5f31167ee3 100755 --- a/ctdb/tests/run_tests.sh +++ b/ctdb/tests/run_tests.sh @@ -172,8 +172,8 @@ if ! which mktemp >/dev/null 2>&1 ; then } fi -tf=$(mktemp) -sf=$(mktemp) +tf=$(mktemp) || die "mktemp failed for tf - is TMPDIR missing?" +sf=$(mktemp) || die "mktemp failed for sf - is TMPDIR missing?" set -o pipefail