summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLorin Hochstein <lorin@isi.edu>2011-07-21 10:30:55 -0400
committerLorin Hochstein <lorin@isi.edu>2011-07-21 10:30:55 -0400
commiteed00e5c826034b042abd713f03aefdfc376ed22 (patch)
tree90c6144e887444a7322b11512e4f70d81fc68b84
parent90c8a7c73d2f12b761440c2e2d14002f6897a438 (diff)
Fixed an issue where was invoked before it was defined in the case of a venv
-rwxr-xr-xrun_tests.sh7
1 files changed, 6 insertions, 1 deletions
diff --git a/run_tests.sh b/run_tests.sh
index d27a2dc70..9b080e197 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