diff options
author | Martin Schwenke <martin@meltin.net> | 2017-03-18 20:38:32 +1100 |
---|---|---|
committer | Amitay Isaacs <amitay@samba.org> | 2017-03-20 08:53:01 +0100 |
commit | e78b8875312d263ee9ad67e740610019d25ef7ad (patch) | |
tree | 229a9ba77f4f0555ab60b45d8a05c99b71364527 /ctdb | |
parent | ece5e67bbc027432aeb3d97205ef093a0acda8d5 (diff) | |
download | samba-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-x | ctdb/tests/run_tests.sh | 4 |
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 |