1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-09 08:58:35 +03:00

script/autobuild.py: allow write_system_info commands to fail

These commands are just there as hints to debug possible problems.
In order to support autobuild.py on non-linux platforms we should
just ignore errors here.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>

Autobuild-User(master): Stefan Metzmacher <metze@samba.org>
Autobuild-Date(master): Thu Apr  2 07:36:07 UTC 2020 on sn-devel-184
This commit is contained in:
Stefan Metzmacher 2020-02-28 00:00:08 +01:00
parent 0312a10e09
commit 9b1e96197e

View File

@ -967,7 +967,10 @@ class buildlist(object):
'cc --version',
'df -m .',
'df -m %s' % testbase]:
out = run_cmd(cmd, output=True, checkfail=False)
try:
out = run_cmd(cmd, output=True, checkfail=False)
except subprocess.CalledProcessError as e:
out = "<failed: %s>" % str(e)
print('### %s' % cmd, file=f)
print(out, file=f)
print(file=f)