1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-26 10:04:02 +03:00

tests: Time logging in integration tests should use TEST_VAR_DIR

Signed-off-by: Martin Schwenke <martin@meltin.net>

(This used to be ctdb commit 734cbd7def23236d418ebc6d813a748a84900101)
This commit is contained in:
Martin Schwenke 2012-04-24 14:03:41 +10:00
parent cb09959063
commit 451e660338
2 changed files with 2 additions and 2 deletions

View File

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

View File

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