From 3a83e023b44ca3b9a209800a81a886ede84d696e Mon Sep 17 00:00:00 2001 From: Rintaro Ishizaki Date: Fri, 2 Nov 2018 18:53:46 +0900 Subject: [PATCH] [build-script] Don't mutate os.environ in run_xctests() Instead, mutate copy of it. --- build-script.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build-script.py b/build-script.py index 7f13028cc90..a5d5f4e1cec 100755 --- a/build-script.py +++ b/build-script.py @@ -276,7 +276,7 @@ def run_xctests(swift_test_exec, build_dir, release, swiftc_exec, verbose): if verbose: swiftpm_call.extend(['--verbose']) - subenv = os.environ + subenv = dict(os.environ) if swiftc_exec: # Add the swiftc exec to PATH so that SwiftSyntax finds it subenv['PATH'] = realpath(swiftc_exec + '/..') + ':' + subenv['PATH']