From c877501617962679c119da32f0de550ba50b2c63 Mon Sep 17 00:00:00 2001 From: Claudiu Belu Date: Wed, 15 Apr 2015 14:58:22 +0300 Subject: [PATCH] Enable tox.ini unit tests configuration Previously, Jenkins did not run the unit tests. Adds dependencies in requirements.txt. Change-Id: Ic7d4c1a6be72025fe80f21fea4a738cacac70c76 --- requirements.txt | 3 +++ tox.ini | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index 5e5d16ae..d8061dd6 100644 --- a/requirements.txt +++ b/requirements.txt @@ -10,3 +10,6 @@ oslo.log>=1.2.0 # Apache-2.0 oslo.serialization>=1.4.0 # Apache-2.0 oslo.utils>=1.6.0 # Apache-2.0 oslo.i18n>=1.5.0 # Apache-2.0 + +eventlet>=0.16.1,!=0.17.0 +-e git+http://github.com/openstack/nova.git#egg=nova diff --git a/tox.ini b/tox.ini index bce991e6..e46ca365 100644 --- a/tox.ini +++ b/tox.ini @@ -8,7 +8,7 @@ usedevelop = True # tox is silly... these need to be separated by a newline.... whitelist_externals = bash find -install_command = pip install -U --force-reinstall {opts} {packages} +install_command = pip install --allow-external -U --force-reinstall {opts} {packages} # Note the hash seed is set to 0 until hyperv can be tested with a # random hash seed successfully. setenv = VIRTUAL_ENV={envdir} @@ -19,6 +19,7 @@ deps = -r{toxinidir}/requirements.txt -r{toxinidir}/test-requirements.txt commands = find . -type f -name "*.pyc" -delete + python setup.py testr --slowest --testr-args='{posargs}' # there is also secret magic in pretty_tox.sh which lets you run in a fail only # mode. To do this define the TRACE_FAILONLY environmental variable.