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:
parent
ece5e67bbc
commit
e78b887531
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user