From: Russ Keldorph Date: Sat, 28 May 2016 03:44:21 +0000 (-0700) Subject: Second attempt to properly modify environment for stress test modes X-Git-Tag: accepted/tizen/base/20180629.140029~4485^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7947874d2c4041cc85820a6798ea65ec7f7cfc8d;p=platform%2Fupstream%2Fcoreclr.git Second attempt to properly modify environment for stress test modes My amateurish bash skills are showing. I forgot that you have to source a script to modify the environment, though, to be fair, this line was already here when I got here. :) --- diff --git a/tests/src/CLRTest.Execute.Bash.targets b/tests/src/CLRTest.Execute.Bash.targets index b4dbe58..71ee893 100644 --- a/tests/src/CLRTest.Execute.Bash.targets +++ b/tests/src/CLRTest.Execute.Bash.targets @@ -297,8 +297,10 @@ cd "$%28dirname "$0")" LockFile="lock" -# The __TestEnv variable may be used to specify something to run before the test. -$__TestEnv +# The __TestEnv variable may be used to specify a script to source before the test. +if [ -n "$__TestEnv" ]%3B then + source $__TestEnv +fi $(BashEnvironmentVariables) $(BashCLRTestEnvironmentCompatibilityCheck)