First start a centos container using docker command line and drop down to the bash shell
dims@dims-ubuntu:~$ sudo docker run -i -t centos /bin/bash [root@218b625b2529 nova]# rpm -q centos-release centos-release-7-0.1406.el7.centos.2.5.x86_64
Install the EPEL repository
[root@218b625b2529 /]# yum -y install epel-release
Install a few things needed before we can run Nova tests as documented here:
[root@218b625b2529 /]# yum -y install git python-devel openssl-devel python-pip git gcc libxslt-devel mysql-devel postgresql-devel libffi-devel libvirt-devel graphviz sqlite-devel
We need tox as well.
[root@218b625b2529 /]# pip install tox
Get the latest nova trunk
[root@218b625b2529 /]# git clone https://git.openstack.org/openstack/nova [root@218b625b2529 /]# cd nova [root@218b625b2529 nova]#
Run the tests as usual
[root@218b625b2529 nova]# tox -e py27 nova.tests.unit.test_crypto
Leave a comment