diff --git a/eng/dogfood.ps1 b/eng/dogfood.ps1 index e7f97d313192..7330e8449307 100644 --- a/eng/dogfood.ps1 +++ b/eng/dogfood.ps1 @@ -26,7 +26,7 @@ function Print-Usage() { Write-Host "if it is set, will be used." } -function Global:prompt {"(dogfood) PS $PWD> "} +function Global:prompt { "(dogfood) PS $PWD> " } if ($help -or (($command -ne $null) -and ($command.Contains("/help") -or $command.Contains("/?")))) { Print-Usage @@ -35,7 +35,7 @@ if ($help -or (($command -ne $null) -and ($command.Contains("/help") -or $comman try { $toolsetBuildProj = InitializeToolset - . $PSScriptroot\restore-toolset.ps1 + . $PSScriptRoot\restore-toolset.ps1 $env:SDK_REPO_ROOT = $RepoRoot @@ -62,6 +62,7 @@ try { $Host.UI.RawUI.WindowTitle = "SDK Test ($RepoRoot) ($configuration)" & $command[0] $command[1..($command.Length-1)] } + Set-Location "$PSScriptRoot\..\artifacts\tmp\Debug\testing" } catch { Write-Host $_ diff --git a/eng/dogfood.sh b/eng/dogfood.sh index 4aca25a7c757..fb3273b9055c 100755 --- a/eng/dogfood.sh +++ b/eng/dogfood.sh @@ -27,4 +27,5 @@ export PATH=$testDotnetRoot:$PATH export DOTNET_ROOT=$testDotnetRoot export DOTNET_ADD_GLOBAL_TOOLS_TO_PATH=0 export PS1="(dogfood) $PS1" -export DOTNET_SYSTEM_NET_SECURITY_NOREVOCATIONCHECKBYDEFAULT="true" \ No newline at end of file +export DOTNET_SYSTEM_NET_SECURITY_NOREVOCATIONCHECKBYDEFAULT="true" +cd "$scriptroot/../artifacts/tmp/Debug/testing" \ No newline at end of file