1
0
mirror of https://github.com/samba-team/samba.git synced 2025-11-07 12:23:51 +03:00

r11659: allow the max runtime for smbtorture and smbd to be controlled on a

per-host basis in the build farm
This commit is contained in:
Andrew Tridgell
2005-11-11 00:50:40 +00:00
committed by Gerald (Jerry) Carter
parent d677ebf43d
commit c8185fe414
2 changed files with 8 additions and 5 deletions

View File

@@ -19,11 +19,10 @@ smbd_check_or_start() {
echo -n "STARTING SMBD..."
((
runtime=2700
if [ -n "$SMBD_VALGRIND" ]; then
runtime=7200
if [ -z "$SMBD_MAXTIME" ]; then
SMBD_MAXTIME=2700
fi
$SMBD_VALGRIND $SRCDIR/bin/smbd --maximum-runtime=$runtime -d1 -s $CONFFILE -M single -i < $SMBD_TEST_FIFO > $SMBD_TEST_LOG 2>&1;
$SMBD_VALGRIND $SRCDIR/bin/smbd --maximum-runtime=$SMBD_MAXTIME -d1 -s $CONFFILE -M single -i < $SMBD_TEST_FIFO > $SMBD_TEST_LOG 2>&1;
ret=$?;
rm -f $SMBD_TEST_FIFO;
if [ -n "$SOCKET_WRAPPER_DIR" -a -d "$SOCKET_WRAPPER_DIR" ]; then