mirror of
https://github.com/actions/runner-images.git
synced 2025-12-17 23:28:57 +00:00
[Ubuntu] Do not import Az.Account module on Ubuntu 18.04 (#2729)
* do not install dbus-user-session on Ubuntu 18.04 * update test for Ubuntu 18.04 * revert changes * do not import Az.Accounts module * remove space * update PowerShell test
This commit is contained in:
committed by
GitHub
parent
46db8100ba
commit
1ef3339658
@@ -30,7 +30,6 @@ Describe "AzureModules" {
|
||||
$moduleName = $module.name
|
||||
|
||||
Context "$moduleName" {
|
||||
|
||||
foreach ($version in $module.versions) {
|
||||
$modulePath = Join-Path -Path $modulesRootPath -ChildPath "${moduleName}_${version}"
|
||||
$moduleInfo = @{ moduleName = $moduleName; modulePath = $modulePath; expectedVersion = $version }
|
||||
@@ -42,9 +41,7 @@ Describe "AzureModules" {
|
||||
)
|
||||
|
||||
$env:PSModulePath = "${modulePath}:${env:PSModulePath}"
|
||||
Import-Module -Name $moduleName
|
||||
(Get-Module -Name $moduleName).Version.ToString()
|
||||
|
||||
(Get-Module -ListAvailable -Name $moduleName).Version.ToString()
|
||||
} -ArgumentList $modulePath, $moduleName
|
||||
|
||||
$moduleVersion = $testJob | Wait-Job | Receive-Job
|
||||
|
||||
Reference in New Issue
Block a user