]> git.ipfire.org Git - thirdparty/bacula.git/commitdiff
regress: Adapt plugin-object-test for new test-plugin output
authorEric Bollengier <eric@baculasystems.com>
Thu, 2 Jun 2022 18:54:02 +0000 (20:54 +0200)
committerEric Bollengier <eric@baculasystems.com>
Thu, 14 Sep 2023 11:56:58 +0000 (13:56 +0200)
regress/tests/plugin-objects-test

index 3e60a8441fc8670c878067774261c1862eb29be9..1d61d83574dc6ed7fc7d92da56b020cd6741af26 100755 (executable)
@@ -69,15 +69,15 @@ if [ "$id_postgres_obj" = "" ]; then
 fi
 
 n_OK=`cat ${cwd}/tmp/log3.out | grep -i "status: T" | wc -l`
-if [ ${n_OK} -ne 2 ]; then
+if [ ${n_OK} -ne 4 ]; then
    estat=1
-   print_debug "ERROR: Wrong count of \'T\' status for objects in $tmp/log3.out, expected 2, got: ${n_OK}"
+   print_debug "ERROR: Wrong count of \'T\' status for objects in $tmp/log3.out, expected 4, got: ${n_OK}"
 fi
 
 n_UNSET=`cat ${cwd}/tmp/log3.out | grep -i "status: U" | wc -l`
-if [ ${n_UNSET} -ne 4 ]; then
+if [ ${n_UNSET} -ne 0 ]; then
    estat=1
-   print_debug "ERROR: Wrong count of \'U\' status for objects in $tmp/log3.out, expected 4, got: ${n_UNSET}"
+   print_debug "ERROR: Wrong count of \'U\' status for objects in $tmp/log3.out, expected 0, got: ${n_UNSET}"
 fi