From 3fcb8da4a1068f7bb85ad410759f64eb2a7b1021 Mon Sep 17 00:00:00 2001 From: Doug Hellmann Date: Wed, 30 May 2012 12:00:59 -0400 Subject: [PATCH] Make the stand-alone test script mimic tox The tox setup does not work on Ubuntu Precise for some reason, but running nose directly does. This update tweaks the stand-alone script run_tests.sh to mimic the behavior of tox. It also adds the "cover" directory created by the coverage plugin to nose to the list of files being ignored by git. Change-Id: I65224cf4bf75e6b7fc0207b3545c466bdac5a35c --- .gitignore | 1 + run_tests.sh | 2 ++ 2 files changed, 3 insertions(+) diff --git a/.gitignore b/.gitignore index 0e664c7b..fdb23b7b 100644 --- a/.gitignore +++ b/.gitignore @@ -5,3 +5,4 @@ TAGS build .coverage .tox +cover diff --git a/run_tests.sh b/run_tests.sh index a86519ad..c15c227f 100755 --- a/run_tests.sh +++ b/run_tests.sh @@ -1,4 +1,6 @@ #!/bin/sh # Simple test runner, should be replaced with tox +rm -rf cover nosetests -P -d -v --with-coverage --cover-package=ceilometer --cover-inclusive tests +tox -e pep8