Commit 3383a7b3 by Leonid Evdokimov Committed by Toshio Kuratomi

tests: replace start-stop-daemon with async action

parent ae9ba4af
---
- name: stop SimpleHTTPServer
shell: start-stop-daemon --stop --pidfile {{ output_dir }}/SimpleHTTPServer.pid --exec {{ py2.stdout }}
...@@ -27,8 +27,9 @@ ...@@ -27,8 +27,9 @@
register: py2 register: py2
- name: start SimpleHTTPServer - 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 }} shell: cd {{ files_dir }} && {{ py2.stdout }} -m SimpleHTTPServer {{ http_port }}
notify: stop SimpleHTTPServer async: 15 # this test set takes ~8 seconds to run
poll: 0
- wait_for: port={{ http_port }} - wait_for: port={{ http_port }}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment