From 2f8dfde1210395175e726455bdb63a7b97245a72 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Bj=C3=B6rn=20Jacke?= Date: Fri, 10 Apr 2026 12:20:56 +0200 Subject: [PATCH] samba_cross.py: autobuild fails with trailing space at line endings autobuild fails with trailing space at line endings, so we need to strip() only at "\n" here strictly. BUG: https://bugzilla.samba.org/show_bug.cgi?id=16057 Signed-off-by: Bjoern Jacke Reviewed-by: Stefan Metzmacher Autobuild-User(master): Stefan Metzmacher Autobuild-Date(master): Fri Apr 10 21:20:52 UTC 2026 on atb-devel-224 --- buildtools/wafsamba/samba_cross.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/buildtools/wafsamba/samba_cross.py b/buildtools/wafsamba/samba_cross.py index 7ec1edc52ea..189db6b4c53 100644 --- a/buildtools/wafsamba/samba_cross.py +++ b/buildtools/wafsamba/samba_cross.py @@ -26,7 +26,7 @@ def add_answer(ca_file, msg, answer): # don't care about its actual content (the tests should # yield one-line output in order to comply with the cross-answer # format) - retstring = retstring.strip() + retstring = retstring.strip("\n") if len(retstring.split('\n')) > 1: retstring = '' answer = (retcode, retstring) -- 2.47.3