From a86cdeba8cf48b3ad07e98f5bdca11b02929a205 Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Fri, 1 Mar 2013 12:01:14 +0100 Subject: [PATCH] Set where=tests Many tests assumed to be run from tests, and fails without that if simply run with 'nosetests', which is handy. Change-Id: Ief9dba564f809012b38df8533dd5a09e90668517 Signed-off-by: Julien Danjou --- setup.cfg | 1 + tox.ini | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/setup.cfg b/setup.cfg index 906ccc2f3c..68f85d6a9b 100644 --- a/setup.cfg +++ b/setup.cfg @@ -5,6 +5,7 @@ cover-erase = true cover-inclusive = true verbosity=2 detailed-errors=1 +where=tests [build_sphinx] all_files = 1 diff --git a/tox.ini b/tox.ini index b64505cc37..e92b27b3d8 100644 --- a/tox.ini +++ b/tox.ini @@ -11,8 +11,8 @@ setenv = VIRTUAL_ENV={envdir} NOSE_OPENSTACK_YELLOW=0.025 NOSE_OPENSTACK_SHOW_ELAPSED=1 commands = - nosetests --no-path-adjustment --where=./nova_tests - nosetests --no-path-adjustment --where=./tests + nosetests --no-path-adjustment --where=../nova_tests + nosetests --no-path-adjustment sitepackages = False [testenv:livedb]