]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
samba_cross.py: autobuild fails with trailing space at line endings master
authorBjörn Jacke <bjacke@samba.org>
Fri, 10 Apr 2026 10:20:56 +0000 (12:20 +0200)
committerStefan Metzmacher <metze@samba.org>
Fri, 10 Apr 2026 21:20:52 +0000 (21:20 +0000)
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 <bjacke@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
Autobuild-User(master): Stefan Metzmacher <metze@samba.org>
Autobuild-Date(master): Fri Apr 10 21:20:52 UTC 2026 on atb-devel-224

buildtools/wafsamba/samba_cross.py

index 7ec1edc52ea50fcf85472033e79689562716efe9..189db6b4c5325ae3d0bac96059270b0b250a4f4b 100644 (file)
@@ -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)