mirror of
https://github.com/PowerShell/PowerShell.git
synced 2024-11-27 03:46:23 +08:00
Return if $env:USINGAZAUTH is not true
This commit is contained in:
parent
452a6e65f8
commit
79da8d3b38
@ -232,6 +232,10 @@ Describe "PSResourceGet - Script tests (Admin)" -Tags @('Feature', 'RequireAdmin
|
||||
Describe "PSResourceGet - ACR tests" -tags "Feature" {
|
||||
|
||||
BeforeAll {
|
||||
if ($env:USINGAZAUTH -ne 'true') {
|
||||
return
|
||||
}
|
||||
|
||||
if ($script:Initialized -eq $false) {
|
||||
Initialize
|
||||
$script:Initialized = $true
|
||||
@ -264,6 +268,10 @@ Describe "PSResourceGet - ACR tests" -tags "Feature" {
|
||||
}
|
||||
|
||||
AfterAll {
|
||||
if ($env:USINGAZAUTH -ne 'true') {
|
||||
return
|
||||
}
|
||||
|
||||
Remove-InstalledModules
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user