Skip to content

Commit 5bca446

Browse files
committed
Improve reliability of listing of test artifacts
1 parent 7bafb4e commit 5bca446

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

test/test.ps1

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ $VerbosePreference = 'Continue'
66
$global:PesterDebugPreference_ShowFullErrors = $true
77

88
try {
9+
Push-Location $PSScriptRoot
10+
911
# Install test dependencies
1012
"Installing test dependencies" | Write-Host
1113
& "$PSScriptRoot\scripts\dep\Install-TestDependencies.ps1" > $null
@@ -27,12 +29,14 @@ try {
2729
}
2830

2931
"Listing test artifacts" | Write-Host
30-
git ls-files --others --exclude-standard $PSScriptRoot
32+
git ls-files --others --exclude-standard
3133

3234
"End of tests" | Write-Host
3335
if ($testFailed) {
3436
throw "One or more tests failed."
3537
}
3638
}catch {
3739
throw
40+
}finally {
41+
Pop-Location
3842
}

0 commit comments

Comments
 (0)