mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-22 12:50:22 -07:00
Migrate Linux CI roles to test targets. (#17997)
This commit is contained in:
parent
374e4348e4
commit
75e4645ee7
263 changed files with 53 additions and 53 deletions
20
test/integration/targets/loops/tasks/main.yml
Normal file
20
test/integration/targets/loops/tasks/main.yml
Normal file
|
@ -0,0 +1,20 @@
|
|||
- name: Measure time before
|
||||
shell: date +%s
|
||||
register: before
|
||||
|
||||
- debug:
|
||||
var: i
|
||||
with_sequence: count=3
|
||||
loop_control:
|
||||
loop_var: i
|
||||
pause: 2
|
||||
|
||||
- name: Measure time after
|
||||
shell: date +%s
|
||||
register: after
|
||||
|
||||
# since there is 3 rounds, and 2 seconds between, it should last 4 seconds
|
||||
# we do not test the upper bound, since CI can lag significantly
|
||||
- assert:
|
||||
that:
|
||||
- '(after.stdout |int) - (before.stdout|int) >= 4'
|
Loading…
Add table
Add a link
Reference in a new issue