]> git.sur5r.net Git - bacula/bacula/commitdiff
regress: enhance btape-test to detect NOT correct message
authorKern Sibbald <kern@sibbald.com>
Sat, 22 Jul 2017 18:39:12 +0000 (20:39 +0200)
committerKern Sibbald <kern@sibbald.com>
Sat, 22 Jul 2017 18:39:12 +0000 (20:39 +0200)
regress/tests/btape-test

index 00c86f9fccb4a060523b07b57e6077a52f030194..272da07647c4bedea06bf21bc7a52a10dfbe8180 100755 (executable)
@@ -40,7 +40,6 @@ quit
 END_OF_DATA
 fi
 
-
 if [ $? != 0 ] ; then
    echo " "
    echo " "
@@ -50,6 +49,13 @@ if [ $? != 0 ] ; then
    exit 1
 fi
 
+grep "This is NOT correct" $tmp/log1.out >/dev/null
+if [ $? != 1 ] ; then
+   print_debug "btape test command failed failed"
+   estat=1
+fi
+
+
 grep "The test autochanger worked" $tmp/log1.out > /dev/null
 if [ $? != 0 ] ; then
    print_debug "btape autochanger test failed"