From f56829593afa778dbc340bd362c1339762a8dca4 Mon Sep 17 00:00:00 2001 From: Mike Hommey Date: Fri, 9 Aug 2019 13:57:29 +0900 Subject: [PATCH] Bug 1573375 - Normalize paths run-task sets in the environment on Windows. r=tomprince Using forward slash for better support in shell scripts. Differential Revision: https://phabricator.services.mozilla.com/D41707 --- taskcluster/scripts/run-task | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/taskcluster/scripts/run-task b/taskcluster/scripts/run-task index c5aaefb18a72..80e1fbd50b68 100755 --- a/taskcluster/scripts/run-task +++ b/taskcluster/scripts/run-task @@ -838,7 +838,9 @@ def main(args): try: for k in ('GECKO_PATH', 'MOZ_FETCHES_DIR', 'UPLOAD_DIR'): if k in os.environ: - os.environ[k] = os.path.abspath(os.environ[k]) + # Normalize paths to use forward slashes. Some shell scripts + # tolerate that better on Windows. + os.environ[k] = os.path.abspath(os.environ[k]).replace(os.sep, '/') print_line(b'setup', b'%s is %s\n' % ( k.encode('utf-8'), os.environ[k].encode('utf-8')))