From: Björn Jacke Date: Fri, 10 Apr 2026 10:20:56 +0000 (+0200) Subject: samba_cross.py: autobuild fails with trailing space at line endings X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;ds=sidebyside;p=thirdparty%2Fsamba.git 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 --- 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)