From: Kern Sibbald Date: Sat, 22 Jul 2017 18:39:12 +0000 (+0200) Subject: regress: enhance btape-test to detect NOT correct message X-Git-Tag: Release-9.0.2~8 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=046c1f55433e269132452613f1ff599fa151e2f1;p=bacula%2Fbacula regress: enhance btape-test to detect NOT correct message --- diff --git a/regress/tests/btape-test b/regress/tests/btape-test index 00c86f9fcc..272da07647 100755 --- a/regress/tests/btape-test +++ b/regress/tests/btape-test @@ -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"