mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-29 08:01:24 -07:00
Remove blanket skips for Python 3 in CI (#10043)
* Remove blanket skips for Python 3 in CI. * Try to fix hg tests. * Disable hg tests. * Drop restriction of supervisor to <4.0.0. This was introduced in https://github.com/ansible/ansible/pull/54935. * Make tests work with supervisorctl 4.0.0. According to https://supervisord.org/changes.html#id12, "supervisorctl will now set its exit code to a non-zero value when an error condition occurs." I'm not sure why a stopped service in 'status' constitutes an error condition, but whatever 🤷... * Use correct Python executable. * Skip RHEL/macOS; diff on config write. * Skip CentOS 7 and OpenSuSE on ansible-core 2.16.
This commit is contained in:
parent
73178e3d33
commit
2a5abab738
10 changed files with 83 additions and 48 deletions
|
@ -22,6 +22,8 @@
|
|||
when: credentials.username != ''
|
||||
|
||||
- command: "supervisorctl -c {{ remote_dir }}/supervisord.conf {% if credentials.username %}-u {{ credentials.username }} -p {{ credentials.password }}{% endif %} status"
|
||||
register: result_cmd
|
||||
failed_when: result_cmd.rc not in [0, 3]
|
||||
|
||||
- name: check that service is started
|
||||
assert:
|
||||
|
@ -30,8 +32,9 @@
|
|||
- (result is changed and result_with_auth is skip) or (result is skip and result_with_auth is changed)
|
||||
|
||||
- name: check that service is running (part1) # py1.log content is checked below
|
||||
script: "files/sendProcessStdin.py 'pys:py1' 2 \
|
||||
'{{ credentials.username }}' '{{ credentials.password }}'"
|
||||
script:
|
||||
cmd: "files/sendProcessStdin.py 'pys:py1' 2 '{{ credentials.username }}' '{{ credentials.password }}'"
|
||||
executable: "{{ ansible_facts.python.executable }}"
|
||||
|
||||
- name: try again to start py1 service (without auth)
|
||||
supervisorctl:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue