]> git.sur5r.net Git - bacula/bacula/commitdiff
ebl small fix
authorEric Bollengier <eric@eb.homelinux.org>
Sat, 28 Apr 2007 11:43:10 +0000 (11:43 +0000)
committerEric Bollengier <eric@eb.homelinux.org>
Sat, 28 Apr 2007 11:43:10 +0000 (11:43 +0000)
git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@4644 91ce42f0-d328-0410-95d8-f526ca767f89

regress/tests/regexwhere-test

index ba85e19b674143bf038646631934665c2da1457f..abd62c1ee1e64d0b750490b781b901701996acae 100755 (executable)
@@ -250,8 +250,8 @@ else
 fi
 
 J=JobI
-if grep  "Restore OK"  tmp/RUN_$J &&
-   grep  "${cwd}/build/po/fr.po.old" tmp/RUN_$J
+if grep  -q "Restore OK"  tmp/RUN_$J &&
+   grep  -q "${cwd}/build/po/fr.po.old" tmp/RUN_$J
 then
     [ "$debug" = 1 ] && echo $J ok
 else
@@ -261,10 +261,10 @@ fi
 
 
 J=JobJ
-if grep  "Restore OK"      tmp/RUN_$J &&
-   grep  "/etc/passwd.old" tmp/RUN_$J &&
-   grep  "Where:      /tmp/bacula-restore-it" tmp/RUN_$J &&
-   grep  "${cwd}/build/po/fr.po.old" tmp/RUN_$J
+if grep -q "Restore OK"      tmp/RUN_$J &&
+   grep -q "/etc/passwd.old" tmp/RUN_$J &&
+   grep -q -e "Where: */tmp/bacula-restore-it" tmp/RUN_$J &&
+   grep -q "${cwd}/build/po/fr.po.old" tmp/RUN_$J
 then
     [ "$debug" = 1 ] && echo $J ok
 else
@@ -275,8 +275,8 @@ fi
 # test with bregtest
 
 find ${cwd}/build > tmp/list
-sed -e 's/readme/readme/i' -e 's/\([ch]\)$/.old.\1/' tmp/list > /tmp/list.sed
-./build/src/tools/bregtest -s -f tmp/list -e '/readme/readme/i,/([ch])$/.old.$1/' > /tmp/list.bsed
+sed -e 's/readme/readme/i' -e 's/\([ch]\)$/.old.\1/' tmp/list > tmp/list.sed
+./build/src/tools/bregtest -s -f tmp/list -e '/readme/readme/i,/([ch])$/.old.$1/' > tmp/list.bsed
 
 if diff -q tmp/list.bsed tmp/list.sed
 then