summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2012-02-14 16:29:54 +0000
committerGerrit Code Review <review@openstack.org>2012-02-14 16:29:54 +0000
commit8312dc624f89bdc9b3881f012eaf20187d437b2e (patch)
treea04e3282cafdf92af6470cd8556dcaa778c9298f
parent5d96f7dd990ad9b688c6a19fed233c2842437cce (diff)
parenta1890ea22ffbf75dee468e950da65502e4e56e0a (diff)
Merge "clean pyc files before running unit tests"
-rwxr-xr-xrun_tests.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/run_tests.sh b/run_tests.sh
index 7cb0ca9a0..133b84515 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