windows testing - changes to accomodate future behaviour changes (#45464)

This commit is contained in:
Jordan Borean 2018-09-11 13:04:23 +10:00 committed by GitHub
commit 881f3a599c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 24 additions and 17 deletions

View file

@ -1,13 +0,0 @@
$os = [Environment]::OSVersion
$major = $os.Version.Major
$minor = $os.Version.Minor
$ok = $false
if(($major -gt 6)){
$ok = $true
}
elseif (($major -eq 6) -and ($minor -ge 3)){
$ok = $true
}
$ok

View file

@ -19,7 +19,7 @@
- name: get os info
script: ../files/Test-Os.ps1
win_shell: '[Environment]::OSVersion.Version -ge [Version]"6.3"'
register: os
- name: Perform with os Windows 2012R2 or newer