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

tests: replace start-stop-daemon with async action

This commit is contained in:
Leonid Evdokimov 2014-07-05 09:15:57 +04:00 committed by Toshio Kuratomi
parent ae9ba4afa1
commit 3383a7b37a
2 changed files with 3 additions and 5 deletions

View file

@ -1,3 +0,0 @@
---
- name: stop SimpleHTTPServer
shell: start-stop-daemon --stop --pidfile {{ output_dir }}/SimpleHTTPServer.pid --exec {{ py2.stdout }}

View file

@ -27,8 +27,9 @@
register: py2
- name: start SimpleHTTPServer
shell: start-stop-daemon --start --pidfile {{ output_dir }}/SimpleHTTPServer.pid --background --make-pidfile --chdir {{ files_dir }} --exec {{ py2.stdout }} -- -m SimpleHTTPServer {{ http_port }}
notify: stop SimpleHTTPServer
shell: cd {{ files_dir }} && {{ py2.stdout }} -m SimpleHTTPServer {{ http_port }}
async: 15 # this test set takes ~8 seconds to run
poll: 0
- wait_for: port={{ http_port }}