1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-11 05:18:09 +03:00

ctdb-tests: Check for errors when adding stubs/ subdirectory to PATH

Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
This commit is contained in:
Martin Schwenke 2018-02-07 13:28:59 +11:00 committed by Martin Schwenke
parent 99350c18aa
commit e0e6e40d17

View File

@ -3,11 +3,10 @@
# Default to just "onnode".
: ${ONNODE:=onnode}
# Augment PATH with relevant stubs/ directories.
if [ -d "${TEST_SUBDIR}/stubs" ] ; then
PATH="${TEST_SUBDIR}/stubs:$PATH"
fi
# Augment PATH with relevant stubs/ directory
stubs_dir="${TEST_SUBDIR}/stubs"
[ -d "${stubs_dir}" ] || die "Failed to locate stubs/ subdirectory"
PATH="${stubs_dir}:${PATH}"
# Find CTDB nodes file.
if [ -z "$CTDB_NODES_FILE" ] ; then