From 3d8d2595fafb5910e9c1811b527c34ed1b961185 Mon Sep 17 00:00:00 2001 From: Lorin Hochstein Date: Thu, 21 Jul 2011 10:30:55 -0400 Subject: [PATCH] Fixed an issue where was invoked before it was defined in the case of a venv --- run_tests.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/run_tests.sh b/run_tests.sh index d27a2dc7..9b080e19 100755 --- a/run_tests.sh +++ b/run_tests.sh @@ -52,8 +52,8 @@ for arg in "$@"; do process_option $arg done +# If enabled, tell nose to collect coverage data if [ $coverage -eq 1 ]; then - ${wrapper} coverage erase noseopts="$noseopts --with-coverage --cover-package=nova" fi @@ -116,6 +116,11 @@ then fi fi +# Delete old coverage data from previous runs +if [ $coverage -eq 1 ]; then + ${wrapper} coverage erase +fi + if [ $just_pep8 -eq 1 ]; then run_pep8 exit