From 844aa45629e683d546e98e4a8bb5dd660f8dacae Mon Sep 17 00:00:00 2001 From: Tanner Gooding Date: Wed, 21 Nov 2018 08:37:35 -0800 Subject: [PATCH] Ensuring that gc_stress and gc_stress_c are marked global when writing, but not when reading (#21128) --- tests/runtest.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/tests/runtest.py b/tests/runtest.py index dee7c3a..360afc3 100755 --- a/tests/runtest.py +++ b/tests/runtest.py @@ -426,6 +426,7 @@ def create_and_use_test_env(_os, env, func): in runtest.sh. """ global gc_stress_c + global gc_stress complus_vars = defaultdict(lambda: None) @@ -500,6 +501,7 @@ def get_environment(test_env=None): influencing the test runner. """ global gc_stress_c + global gc_stress complus_vars = defaultdict(lambda: "") @@ -730,8 +732,7 @@ def run_tests(host_os, test_native_bin_location : Native test components, None and windows. test_env(str) : path to the test_env to be used """ - global gc_stress - + # Setup the dotnetcli location dotnetcli_location = os.path.join(coreclr_repo_location, "Tools", "dotnetcli", "dotnet%s" % (".exe" if host_os == "Windows_NT" else "")) @@ -1970,8 +1971,6 @@ def do_setup(host_os, core_root, unprocessed_args, test_env): - global gc_stress_c - # Setup the tools for the repo. setup_tools(host_os, coreclr_repo_location) -- 2.7.4