Improvements
1. Continue tests if default kernel is latest. 2. Set fixed number as identifier for all resource groups deployed in single test cycle.
This commit is contained in:
Родитель
80baf48dde
Коммит
6d6c390ecd
|
@ -55,6 +55,9 @@ Set-Variable -Name PrivateConfiguration -Value @() -Scope Global
|
|||
Set-Variable -Name CurrentTestData -Value $CurrentTestData -Scope Global
|
||||
Set-Variable -Name preserveKeyword -Value "preserving" -Scope Global
|
||||
|
||||
Set-Variable -Name $global4digitRandom -Value $(Get-Random -SetSeed $(Get-Random) -Maximum 9999 -Minimum 1111) -Scope Global
|
||||
|
||||
|
||||
if($EnableAcceleratedNetworking)
|
||||
{
|
||||
Set-Variable -Name EnableAcceleratedNetworking -Value $true -Scope Global
|
||||
|
|
|
@ -335,7 +335,7 @@ Function CreateAllResourceGroupDeployments($setupType, $xmlConfig, $Distro, [str
|
|||
}
|
||||
}
|
||||
$curtime = Get-Date
|
||||
$randomNumber = Get-Random -Maximum 9999 -Minimum 1111
|
||||
$randomNumber = $global4digitRandom
|
||||
$isServiceDeployed = "False"
|
||||
$retryDeployment = 0
|
||||
if ( $RG.Tag -ne $null )
|
||||
|
|
|
@ -221,7 +221,15 @@ function InstallCustomKernel ($customKernel, $allVMData, [switch]$RestartAfterUp
|
|||
if ($currentKernelVersion -eq $upgradedKernelVersion)
|
||||
{
|
||||
LogErr "Kernel version is same after restarting VMs."
|
||||
$isKernelUpgraded = $false
|
||||
if ($customKernel -imatch "latest")
|
||||
{
|
||||
LogMsg "Continuing the tests as default kernel is latest."
|
||||
$isKernelUpgraded = $true
|
||||
}
|
||||
else
|
||||
{
|
||||
$isKernelUpgraded = $false
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Загрузка…
Ссылка в новой задаче