From: Eric Bollengier Date: Thu, 28 Mar 2024 09:23:13 +0000 (+0100) Subject: regress: Add test for uname update X-Git-Tag: Release-15.0.3~63 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f45296591b3e6cf090426fdff4d1e477ec5cf2d9;p=thirdparty%2Fbacula.git regress: Add test for uname update --- diff --git a/regress/tests/status-test b/regress/tests/status-test index 046e5442c..20e357dee 100755 --- a/regress/tests/status-test +++ b/regress/tests/status-test @@ -34,6 +34,11 @@ cat <$tmp/bconcmds messages @$out $tmp/log1.out status client +@$out $tmp/log111.out +sql +select 'ERROR', Name, Uname, Plugins from Client WHERE Uname = ''; + + @$out $tmp/log2.out status storage @$out $tmp/log3.out @@ -189,12 +194,6 @@ if [ $? -ne 0 ]; then estat=1 fi -grep "No Jobs running" $tmp/log10.out > /dev/null -if [ $? -ne 0 ]; then - print_debug "ERROR: should find 'No Jobs running' in $tmp/log10.out" - estat=1 -fi - grep "SDPort=" $tmp/log11.out > /dev/null if [ $? -ne 0 ]; then print_debug "ERROR: should find 'SDPort' in $tmp/log11.out" @@ -207,4 +206,10 @@ if [ $? -ne 0 ]; then estat=1 fi +nb=`grep "ERROR" $tmp/log111.out | wc -l` +if [ $nb -gt 1 ]; then + print_debug "ERROR: Should find Uname updated after status client in $tmp/log111.out" + estat=1 +fi + end_test