mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Use ansible_python for interpreter in test_uri. (#17376)
This commit is contained in:
parent
7cd988f60c
commit
4ae59b2743
1 changed files with 1 additions and 5 deletions
|
@ -41,12 +41,8 @@
|
||||||
src: "testserver.py"
|
src: "testserver.py"
|
||||||
dest: "{{ output_dir }}/testserver.py"
|
dest: "{{ output_dir }}/testserver.py"
|
||||||
|
|
||||||
- name: verify that python2 is installed so this test can continue
|
|
||||||
shell: which python2
|
|
||||||
register: py2
|
|
||||||
|
|
||||||
- name: start SimpleHTTPServer
|
- name: start SimpleHTTPServer
|
||||||
shell: cd {{ files_dir }} && {{ py2.stdout }} {{ output_dir}}/testserver.py {{ http_port }}
|
shell: cd {{ files_dir }} && {{ ansible_python.executable }} {{ output_dir}}/testserver.py {{ http_port }}
|
||||||
async: 60 # this test set takes ~15 seconds to run
|
async: 60 # this test set takes ~15 seconds to run
|
||||||
poll: 0
|
poll: 0
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue