]> git.sur5r.net Git - bacula/bacula/commitdiff
ebl test that runbeforejob isn't run
authorEric Bollengier <eric@eb.homelinux.org>
Sat, 5 May 2007 14:30:55 +0000 (14:30 +0000)
committerEric Bollengier <eric@eb.homelinux.org>
Sat, 5 May 2007 14:30:55 +0000 (14:30 +0000)
git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@4708 91ce42f0-d328-0410-95d8-f526ca767f89

regress/scripts/bacula-dir.conf.maxtime.in
regress/tests/maxtime-test

index 88d1172f60620cbf7ce41307e0849959763e8935..f0435be282f481e06179da870da70ea9258a83d3 100644 (file)
@@ -70,7 +70,7 @@ Job {
   FileSet = FS_TESTJOB
   MaxStartDelay = 30sec
   Pool = PoolA
-  # TODO: il faut un when=
+  Runbeforejob = "/bin/echo NEVER start this"
 }
 
 Job {
index 685a40f8669284debb88cfd91e125faf4f18d5b8..210722db37a78441f49b272cd7a150154e52165b 100755 (executable)
@@ -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