1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

win_psexec: make the tests more stable (#53716)

This commit is contained in:
Jordan Borean 2019-03-13 11:22:59 +10:00 committed by GitHub
parent 2ecde81dcb
commit 33939f7fe8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 7 deletions

View file

@ -1,2 +1 @@
shippable/windows/group3 shippable/windows/group3
unstable

View file

@ -41,12 +41,10 @@
system: yes system: yes
nobanner: true nobanner: true
register: whoami_as_system register: whoami_as_system
# Seems to be a bug with PsExec where the stdout can be empty, just retry the task to make this test a bit more stable
- name: Test whoami as SYSTEM until: whoami_as_system.rc == 0 and whoami_as_system.stdout == 'nt authority\system'
assert: retries: 3
that: delay: 2
- whoami_as_system.rc == 0
- whoami_as_system.stdout == 'nt authority\system'
# FIXME: Behaviour is not consistent on all Windows systems # FIXME: Behaviour is not consistent on all Windows systems
#- name: Run whoami as ELEVATED #- name: Run whoami as ELEVATED