summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ctdb/tests/scripts/integration.bash2
-rwxr-xr-xctdb/tests/simple/00_ctdb_onnode.sh2
2 files changed, 2 insertions, 2 deletions
diff --git a/ctdb/tests/scripts/integration.bash b/ctdb/tests/scripts/integration.bash
index 776ceec855..2dab6d77e4 100644
--- a/ctdb/tests/scripts/integration.bash
+++ b/ctdb/tests/scripts/integration.bash
@@ -49,7 +49,7 @@ ctdb_check_time_logs ()
local ds_prev=""
local node=""
- out=$(onnode all tail -n 20 /var/log/ctdb.test.time.log 2>&1)
+ out=$(onnode all tail -n 20 "${TEST_VAR_DIR}/ctdb.test.time.log" 2>&1)
if [ $? -eq 0 ] ; then
local line
diff --git a/ctdb/tests/simple/00_ctdb_onnode.sh b/ctdb/tests/simple/00_ctdb_onnode.sh
index af6cdb5150..0904fdfa79 100755
--- a/ctdb/tests/simple/00_ctdb_onnode.sh
+++ b/ctdb/tests/simple/00_ctdb_onnode.sh
@@ -33,6 +33,6 @@ onnode all onnode all true
# each node that we can examine later if tests fail weirdly.
if [ -z "$TEST_LOCAL_DAEMONS" -a -n "$CTDB_TEST_TIME_LOGGING" ] ; then
echo "Starting time logging on each node..."
- f="/var/log/ctdb.test.time.log"
+ f="${TEST_VAR_DIR}/ctdb.test.time.log"
onnode -p all "[ -f $f ] || while : ; do date '+%s %N' ; sleep 1 ; done >$f 2>&1 </dev/null &" &
fi