Fixing the name of the APP_BASE environment variable to KRE_APPBASE (mono)
This commit is contained in:
parent
6cf7cbfa5b
commit
f04921a26a
|
|
@ -96,8 +96,8 @@ namespace E2ETests
|
||||||
|
|
||||||
//Mono does not have a way to pass in a --appbase switch. So it will be an environment variable.
|
//Mono does not have a way to pass in a --appbase switch. So it will be an environment variable.
|
||||||
//https://github.com/aspnet/KRuntime/issues/580
|
//https://github.com/aspnet/KRuntime/issues/580
|
||||||
Environment.SetEnvironmentVariable("APP_BASE", applicationPath);
|
Environment.SetEnvironmentVariable("KRE_APPBASE", applicationPath);
|
||||||
Console.WriteLine("Setting the APP_BASE to {0}", applicationPath);
|
Console.WriteLine("Setting the KRE_APPBASE to {0}", applicationPath);
|
||||||
|
|
||||||
var path = Environment.GetEnvironmentVariable("PATH");
|
var path = Environment.GetEnvironmentVariable("PATH");
|
||||||
var kreBin = path.Split(new char[] { ':' }, StringSplitOptions.RemoveEmptyEntries).Where(c => c.Contains("KRE-mono45")).FirstOrDefault();
|
var kreBin = path.Split(new char[] { ':' }, StringSplitOptions.RemoveEmptyEntries).Where(c => c.Contains("KRE-mono45")).FirstOrDefault();
|
||||||
|
|
@ -126,7 +126,7 @@ namespace E2ETests
|
||||||
Thread.Sleep(5 * 1000);
|
Thread.Sleep(5 * 1000);
|
||||||
|
|
||||||
//Clear the appbase so that it does not create issues with successive runs
|
//Clear the appbase so that it does not create issues with successive runs
|
||||||
Environment.SetEnvironmentVariable("APP_BASE", string.Empty);
|
Environment.SetEnvironmentVariable("KRE_APPBASE", string.Empty);
|
||||||
return hostProcess;
|
return hostProcess;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue