Bug 1573375 - Wrap fetch-content output in run-task. r=tomprince
authorMike Hommey <mh+mozilla@glandium.org>
Fri, 09 Aug 2019 13:56:49 +0900
changeset 488137 3bfb88dc5a819ea7d9f037050e005b5d882e952c
parent 488136 943fd9dde02002dee1e870e5dee261b20525018f
child 488138 0ac9d259e2cc5f298c46ee7ab05ee44a12e35b30
push id36435
push usercbrindusan@mozilla.com
push dateThu, 15 Aug 2019 09:46:49 +0000
treeherdermozilla-central@0db07ff50ab5 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerstomprince
bugs1573375
milestone70.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1573375 - Wrap fetch-content output in run-task. r=tomprince Like the output from other subcommands. Differential Revision: https://phabricator.services.mozilla.com/D41706
taskcluster/scripts/run-task
--- a/taskcluster/scripts/run-task
+++ b/taskcluster/scripts/run-task
@@ -507,18 +507,20 @@ def fetch_artifacts():
         fetch_content = os.path.join(os.path.dirname(__file__),
                                      'fetch-content')
 
     if not os.path.isfile(fetch_content):
         print(FETCH_CONTENT_NOT_FOUND)
         sys.exit(1)
 
     cmd = [sys.executable, '-u', fetch_content, 'task-artifacts']
-    print_line(b'fetches', b'executing %r\n' % cmd)
-    subprocess.run(cmd, check=True, env=os.environ)
+    res = run_and_prefix_output(b'fetches', cmd)
+    if res:
+        sys.exit(res)
+
     print_line(b'fetches', b'finished fetching artifacts\n')
 
 
 def add_vcs_arguments(parser, project, name):
     """Adds arguments to ArgumentParser to control VCS options for a project."""
 
     parser.add_argument('--%s-checkout' % project,
                         help='Directory where %s checkout should be created' %