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:
Sorin Sbarnea 2020-01-22 11:55:34 +00:00
parent 91bdae6b2a
commit 277087f549
4 changed files with 3 additions and 5 deletions

1
bindep.txt Normal file
View File

@ -0,0 +1 @@
python3-yaml [platform:ubuntu]

View File

@ -15,6 +15,7 @@ provisioner:
name: ansible
config_options:
defaults:
interpreter_python: auto
timeout: 30
forks: 500
inventory:

View File

@ -3,11 +3,6 @@
hosts: all
tasks:
- name: Install python YAML module
pip:
name: pyyaml
extra_args: --user
- name: Prepare the console file directory
file:
path: '{{ ansible_user_dir }}/workspace/logs/'

View File

@ -62,6 +62,7 @@ deps =
pytest-html # MPL 2.0
pytest-molecule>=1.2.4 # MIT
pytest-xdist
pyyaml
selinux>=0.2.1 # MIT
commands =
python -m pytest --color=yes --html={envlogdir}/reports.html --self-contained-html {tty:-s} {posargs}