]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3:tests: Adapt winbind_call_depth_trace to depth=3
authorPavel Filipenský <pfilipensky@samba.org>
Sat, 30 Nov 2024 19:52:29 +0000 (20:52 +0100)
committerPavel Filipensky <pfilipensky@samba.org>
Thu, 5 Dec 2024 15:54:57 +0000 (15:54 +0000)
Signed-off-by: Pavel Filipenský <pfilipensky@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
Autobuild-User(master): Pavel Filipensky <pfilipensky@samba.org>
Autobuild-Date(master): Thu Dec  5 15:54:57 UTC 2024 on atb-devel-224

source3/script/tests/test_winbind_call_depth_trace.sh

index e3cd441f0a7bae6127a8dd7630aa6fe866cc047c..a89dbcc4ae61ef340bc1176b3e9db760eb36d010 100755 (executable)
@@ -63,17 +63,17 @@ test_winbind_call_depth_trace()
                return 1
        fi
 
-       # Test that the depth of last line with 'wb_group_members_send' is: depth=4
-       COUNT3=$(grep wb_group_members_send "$LOGFILE" | tail -1 | grep -c depth=4)
+       # Test that the depth of last line with 'wb_group_members_send' is: depth=3
+       COUNT3=$(grep wb_group_members_send "$LOGFILE" | tail -1 | grep -c depth=3)
        if [ "$COUNT3" -ne 1 ]; then
-               echo "The last line with wb_group_members_send should have depth=4."
+               echo "The last line with wb_group_members_send should have depth=3."
                return 1
        fi
 
        # Test that the indentation of the line below last 'wb_group_members_send' is indented by 2+4*4 spaces:
-       COUNT4=$(grep -A1 wb_group_members_send "$LOGFILE" | tail -1| grep -c '^                  WB command group_members start')
+       COUNT4=$(grep 'WB command group_members start' "$LOGFILE" | tail -1| grep -c '^              WB command group_members start')
        if [ "$COUNT4" -ne 1 ]; then
-               echo "The line after the last line with wb_group_members_send should be indented by 18 spaces."
+               echo "The line after the last line with wb_group_members_send should be indented by 14 spaces."
                return 1
        fi