Merge "[ci] run osresources script from proper python binary"

This commit is contained in:
Zuul 2018-12-17 12:37:10 +00:00 committed by Gerrit Code Review
commit 812e495e4c
2 changed files with 18 additions and 2 deletions

View File

@ -1,7 +1,15 @@
- name: Check OpenStack resources after Rally launch
become: yes
become_user: stack
shell: "python ./tests/ci/osresources.py --compare-with-list {{ rally_resources_at_start }}"
shell:
cmd: |
pip3 freeze | grep rally > /dev/null
if [ "$?" = "0" ]; then
PYTHON=python3
else
PYTHON=python
fi
$PYTHON ./tests/ci/osresources.py --compare-with-list {{ rally_resources_at_start }}
args:
chdir: "{{ zuul.projects['git.openstack.org/openstack/rally-openstack'].src_dir }}"
register: command_result

View File

@ -1,6 +1,14 @@
- name: Dump all available OpenStack resources
become: yes
become_user: stack
shell: "python ./tests/ci/osresources.py --dump-list {{ rally_resources_at_start }}"
shell:
cmd: |
pip3 freeze | grep rally > /dev/null
if [ "$?" = "0" ]; then
PYTHON=python3
else
PYTHON=python
fi
$PYTHON ./tests/ci/osresources.py --dump-list {{ rally_resources_at_start }}
args:
chdir: "{{ zuul.projects['git.openstack.org/openstack/rally-openstack'].src_dir }}"