From eb02776cf412ac10480547fb60f7feb1a7c6b39c Mon Sep 17 00:00:00 2001 From: =?utf8?q?Pavel=20Filipensk=C3=BD?= Date: Sat, 30 Nov 2024 20:52:29 +0100 Subject: [PATCH] s3:tests: Adapt winbind_call_depth_trace to depth=3 MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Pavel Filipenský Reviewed-by: Andreas Schneider Autobuild-User(master): Pavel Filipensky Autobuild-Date(master): Thu Dec 5 15:54:57 UTC 2024 on atb-devel-224 --- source3/script/tests/test_winbind_call_depth_trace.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/source3/script/tests/test_winbind_call_depth_trace.sh b/source3/script/tests/test_winbind_call_depth_trace.sh index e3cd441f0a7..a89dbcc4ae6 100755 --- a/source3/script/tests/test_winbind_call_depth_trace.sh +++ b/source3/script/tests/test_winbind_call_depth_trace.sh @@ -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 -- 2.47.3