From f45296591b3e6cf090426fdff4d1e477ec5cf2d9 Mon Sep 17 00:00:00 2001 From: Eric Bollengier Date: Thu, 28 Mar 2024 10:23:13 +0100 Subject: [PATCH] regress: Add test for uname update --- regress/tests/status-test | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) 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 -- 2.47.3