mirror of
https://github.com/PowerShell/PowerShell.git
synced 2024-11-23 09:43:57 +08:00
Fix cleanup in PSResourceGet test (#24339)
This commit is contained in:
parent
669d9e384e
commit
b9c0127e83
@ -331,6 +331,14 @@ Describe "PSResourceGet - Script tests (Admin)" -Tags @('Feature', 'RequireAdmin
|
||||
}
|
||||
}
|
||||
|
||||
function FinalCleanUp
|
||||
{
|
||||
if(Test-Path $TempDir)
|
||||
{
|
||||
Remove-Item -Path $TempDir -Recurse -Force
|
||||
}
|
||||
}
|
||||
|
||||
Describe "PSResourceGet - ACR tests" -tags "Feature" {
|
||||
|
||||
BeforeAll {
|
||||
@ -396,12 +404,3 @@ Describe "PSResourceGet - ACR tests" -tags "Feature" {
|
||||
FinalCleanUp
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
function FinalCleanUp
|
||||
{
|
||||
if(Test-Path $TempDir)
|
||||
{
|
||||
Remove-Item -Path $TempDir -Recurse -Force
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user