summaryrefslogtreecommitdiff
path: root/run_tests.sh
diff options
context:
space:
mode:
authorJoe Gordon <jogo@cloudscaling.com>2012-02-13 17:58:52 -0800
committerJoe Gordon <jogo@cloudscaling.com>2012-02-13 17:58:52 -0800
commita1890ea22ffbf75dee468e950da65502e4e56e0a (patch)
tree4cb69b6d71da9c21ca80f5f54b2b9eaef2c108d6 /run_tests.sh
parent14b79e78176b84f25ae666e9352041905fe8289e (diff)
downloadnova-a1890ea22ffbf75dee468e950da65502e4e56e0a.tar.gz
clean pyc files before running unit tests
Change-Id: If7ad58f131d8b780125df7ecb5c4081014064f72
Diffstat (limited to 'run_tests.sh')
-rwxr-xr-xrun_tests.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/run_tests.sh b/run_tests.sh
index 7cb0ca9a0b..133b84515e 100755
--- a/run_tests.sh
+++ b/run_tests.sh
@@ -74,6 +74,9 @@ if [ $no_site_packages -eq 1 ]; then
fi
function run_tests {
+ # Cleanup *pyc
+ echo "cleaning *.pyc files"
+ ${wrapper} find . -type f -name "*.pyc" -delete
# Just run the test suites in current environment
${wrapper} $NOSETESTS 2> run_tests.log
# If we get some short import error right away, print the error log directly