]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
script/autobuild.py: allow write_system_info commands to fail
authorStefan Metzmacher <metze@samba.org>
Thu, 27 Feb 2020 23:00:08 +0000 (00:00 +0100)
committerKarolin Seeger <kseeger@samba.org>
Wed, 3 Mar 2021 10:13:11 +0000 (10:13 +0000)
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

(cherry picked from commit 9b1e96197e0983a16e73ce351eac7775801736d8)

script/autobuild.py

index f71e0266503c6c2e4242086cabf35b1d9e7c72c8..e2778609cceb29c2f5159343077344d5d0470dc1 100755 (executable)
@@ -979,7 +979,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)