Misc fixes for gate tests

Ensure snapd and the core snap are installed as required to
test build a classic snap.

Change-Id: If7d68fc16a76fd2374bfcc49256f5126b87517fc
This commit is contained in:
James Page 2017-02-13 11:32:43 +00:00
parent 8db5aa121a
commit bf3807304f
3 changed files with 9 additions and 0 deletions

4
.gitreview Normal file
View File

@ -0,0 +1,4 @@
[gerrit]
host=review.openstack.org
port=29418
project=openstack/snap-tempest.git

View File

@ -1 +1,2 @@
snapcraft [platform:dpkg]
snapd [platform:dpkg]

View File

@ -6,9 +6,13 @@ skipsdist = True
basepython = python3.5
install_command = pip install {opts} {packages}
passenv = HOME TERM
whitelist_externals =
sudo
snapcraft
[testenv:snap]
deps = -r{toxinidir}/requirements.txt
commands =
sudo snap install core
snapcraft clean
snapcraft snap