summaryrefslogtreecommitdiff
path: root/ctdb
diff options
context:
space:
mode:
authorMartin Schwenke <martin@meltin.net>2017-03-18 20:38:32 +1100
committerAmitay Isaacs <amitay@samba.org>2017-03-20 08:53:01 +0100
commite78b8875312d263ee9ad67e740610019d25ef7ad (patch)
tree229a9ba77f4f0555ab60b45d8a05c99b71364527 /ctdb
parentece5e67bbc027432aeb3d97205ef093a0acda8d5 (diff)
downloadsamba-e78b8875312d263ee9ad67e740610019d25ef7ad.tar.gz
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 <martin@meltin.net> Reviewed-by: Amitay Isaacs <amitay@gmail.com> Autobuild-User(master): Amitay Isaacs <amitay@samba.org> Autobuild-Date(master): Mon Mar 20 08:53:02 CET 2017 on sn-devel-144
Diffstat (limited to 'ctdb')
-rwxr-xr-xctdb/tests/run_tests.sh4
1 files 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