Skip to content

Commit 9ecb92d

Browse files
authored
Set dogfood script working directory (#50895)
2 parents 7538a89 + e34373e commit 9ecb92d

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

eng/dogfood.ps1

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ function Print-Usage() {
2626
Write-Host "if it is set, will be used."
2727
}
2828

29-
function Global:prompt {"(dogfood) PS $PWD> "}
29+
function Global:prompt { "(dogfood) PS $PWD> " }
3030

3131
if ($help -or (($command -ne $null) -and ($command.Contains("/help") -or $command.Contains("/?")))) {
3232
Print-Usage
@@ -35,7 +35,7 @@ if ($help -or (($command -ne $null) -and ($command.Contains("/help") -or $comman
3535

3636
try {
3737
$toolsetBuildProj = InitializeToolset
38-
. $PSScriptroot\restore-toolset.ps1
38+
. $PSScriptRoot\restore-toolset.ps1
3939

4040
$env:SDK_REPO_ROOT = $RepoRoot
4141

@@ -62,6 +62,7 @@ try {
6262
$Host.UI.RawUI.WindowTitle = "SDK Test ($RepoRoot) ($configuration)"
6363
& $command[0] $command[1..($command.Length-1)]
6464
}
65+
Set-Location "$PSScriptRoot\..\artifacts\tmp\Debug\testing"
6566
}
6667
catch {
6768
Write-Host $_

eng/dogfood.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,5 @@ export PATH=$testDotnetRoot:$PATH
2727
export DOTNET_ROOT=$testDotnetRoot
2828
export DOTNET_ADD_GLOBAL_TOOLS_TO_PATH=0
2929
export PS1="(dogfood) $PS1"
30-
export DOTNET_SYSTEM_NET_SECURITY_NOREVOCATIONCHECKBYDEFAULT="true"
30+
export DOTNET_SYSTEM_NET_SECURITY_NOREVOCATIONCHECKBYDEFAULT="true"
31+
cd "$scriptroot/../artifacts/tmp/Debug/testing"

0 commit comments

Comments
 (0)