Second attempt to properly modify environment for stress test modes
authorRuss Keldorph <Russ.Keldorph@microsoft.com>
Sat, 28 May 2016 03:44:21 +0000 (20:44 -0700)
committerRuss Keldorph <Russ.Keldorph@microsoft.com>
Sat, 28 May 2016 03:44:21 +0000 (20:44 -0700)
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

index b4dbe58..71ee893 100644 (file)
@@ -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)