From 046c1f55433e269132452613f1ff599fa151e2f1 Mon Sep 17 00:00:00 2001 From: Kern Sibbald Date: Sat, 22 Jul 2017 20:39:12 +0200 Subject: [PATCH] regress: enhance btape-test to detect NOT correct message --- regress/tests/btape-test | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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" -- 2.39.2