waf: sanitize and fix added cross answer
commit3fb617310df73795fbb761253f27052ae5afa40b
authorUri Simchoni <urisimchoni@gmail.com>
Mon, 18 May 2015 18:12:06 +0000 (18 21:12 +0300)
committerAndrew Bartlett <abartlet@samba.org>
Wed, 20 May 2015 09:19:11 +0000 (20 11:19 +0200)
tree78b329e9cfa27425301c82603c10dc75ab9b5b02
parent843c373d008cd51940f08a7a291976b6e80a5fbf
waf: sanitize and fix added cross answer

When configuring samba for cross-compilation using the cross-answers
method, the function add_answer receives the standard output and exit code
of a configuration test and updates the cross-answers file accordingly.

This patch sanitizes the standard output to conform to the cross-answers
file format - one line of output. It also adds a missing newline.

(Note - at this point add_answer is only ever called with empty output
but this change is significant for the reminder of this patchset)

Signed-off-by: Uri Simchoni <urisimchoni@gmail.com>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Alexander Bokovoy <ab@samba.org>
buildtools/wafsamba/samba_cross.py