From 239735ff49b3570c3f7f485ef67bf5caefe473f2 Mon Sep 17 00:00:00 2001 From: Eric Bollengier Date: Sat, 5 May 2007 14:30:55 +0000 Subject: [PATCH] ebl test that runbeforejob isn't run git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@4708 91ce42f0-d328-0410-95d8-f526ca767f89 --- regress/scripts/bacula-dir.conf.maxtime.in | 2 +- regress/tests/maxtime-test | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/regress/scripts/bacula-dir.conf.maxtime.in b/regress/scripts/bacula-dir.conf.maxtime.in index 88d1172f60..f0435be282 100644 --- a/regress/scripts/bacula-dir.conf.maxtime.in +++ b/regress/scripts/bacula-dir.conf.maxtime.in @@ -70,7 +70,7 @@ Job { FileSet = FS_TESTJOB MaxStartDelay = 30sec Pool = PoolA - # TODO: il faut un when= + Runbeforejob = "/bin/echo NEVER start this" } Job { diff --git a/regress/tests/maxtime-test b/regress/tests/maxtime-test index 685a40f866..210722db37 100755 --- a/regress/tests/maxtime-test +++ b/regress/tests/maxtime-test @@ -60,7 +60,8 @@ else rstat=1 fi -if grep -q -e 'RUN_MAXSTARTDELAY.* Fatal error: Job canceled because max start delay time exceeded.' tmp/RUN_MAXTIME.log +if grep -q -e 'RUN_MAXSTARTDELAY.* Fatal error: Job canceled because max start delay time exceeded.' tmp/RUN_MAXTIME.log && + ! grep -q -e 'NEVER start this' tmp/RUN_MAXTIME.log then [ "$debug" = 1 ] && echo MAXSTARTDELAY ok else -- 2.39.5