Assure pyyaml is installed before running sova test
Avoids failure when ansible was running inside a virtualenv due to unavailability of --user mode. In the future sova test should be switched to a container instead of delegated as delegated is testing compatibility build build node used by tox (bionic), under a tox virtualenv, something that diverge considerably from production use. Change-Id: Idd79b493fe9f6d37005484239e532793a06ea356
This commit is contained in:
1
bindep.txt
Normal file
1
bindep.txt
Normal file
@@ -0,0 +1 @@
|
|||||||
|
python3-yaml [platform:ubuntu]
|
||||||
@@ -15,6 +15,7 @@ provisioner:
|
|||||||
name: ansible
|
name: ansible
|
||||||
config_options:
|
config_options:
|
||||||
defaults:
|
defaults:
|
||||||
|
interpreter_python: auto
|
||||||
timeout: 30
|
timeout: 30
|
||||||
forks: 500
|
forks: 500
|
||||||
inventory:
|
inventory:
|
||||||
|
|||||||
@@ -3,11 +3,6 @@
|
|||||||
hosts: all
|
hosts: all
|
||||||
tasks:
|
tasks:
|
||||||
|
|
||||||
- name: Install python YAML module
|
|
||||||
pip:
|
|
||||||
name: pyyaml
|
|
||||||
extra_args: --user
|
|
||||||
|
|
||||||
- name: Prepare the console file directory
|
- name: Prepare the console file directory
|
||||||
file:
|
file:
|
||||||
path: '{{ ansible_user_dir }}/workspace/logs/'
|
path: '{{ ansible_user_dir }}/workspace/logs/'
|
||||||
|
|||||||
1
tox.ini
1
tox.ini
@@ -62,6 +62,7 @@ deps =
|
|||||||
pytest-html # MPL 2.0
|
pytest-html # MPL 2.0
|
||||||
pytest-molecule>=1.2.4 # MIT
|
pytest-molecule>=1.2.4 # MIT
|
||||||
pytest-xdist
|
pytest-xdist
|
||||||
|
pyyaml
|
||||||
selinux>=0.2.1 # MIT
|
selinux>=0.2.1 # MIT
|
||||||
commands =
|
commands =
|
||||||
python -m pytest --color=yes --html={envlogdir}/reports.html --self-contained-html {tty:-s} {posargs}
|
python -m pytest --color=yes --html={envlogdir}/reports.html --self-contained-html {tty:-s} {posargs}
|
||||||
|
|||||||
Reference in New Issue
Block a user