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:
Shital Savekar 2017-06-19 11:04:28 +00:00
Родитель 80baf48dde
Коммит 6d6c390ecd
3 изменённых файлов: 13 добавлений и 2 удалений

Просмотреть файл

@ -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
{