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
# 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)