[stable-2.9] openssl_privatekey test - Add pause for macOS (#71819)

The stat time granularity on macOS is one second. We recently upgrade
to faster macOS hosts, so some tests that run closely together to
see if something changed will have the same timestamp intermittently.
pull/71847/head
Sam Doran 4 years ago committed by GitHub
parent 3e26c56edd
commit 582cf06501
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -266,6 +266,12 @@
select_crypto_backend: '{{ select_crypto_backend }}'
register: privatekey_mode_2
# stat time granularity on macOS is only one second
- name: Pause
pause:
seconds: 1
when: ansible_facts.distribution == 'MacOSX'
- name: Generate privatekey_mode (mode 0400, force)
openssl_privatekey:
path: '{{ output_dir }}/privatekey_mode.pem'

Loading…
Cancel
Save