1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-22 13:34:15 +03:00

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
This commit is contained in:
Martin Schwenke 2017-03-18 20:38:32 +11:00 committed by Amitay Isaacs
parent ece5e67bbc
commit e78b887531

View File

@ -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