From 7947874d2c4041cc85820a6798ea65ec7f7cfc8d Mon Sep 17 00:00:00 2001 From: Russ Keldorph Date: Fri, 27 May 2016 20:44:21 -0700 Subject: [PATCH] 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. :) --- tests/src/CLRTest.Execute.Bash.targets | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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) -- 2.7.4