clean pyc files before running unit tests

Change-Id: If7ad58f131d8b780125df7ecb5c4081014064f72
This commit is contained in:
Joe Gordon
2012-02-13 17:58:52 -08:00
parent 14b79e7817
commit a1890ea22f
+3
View File
@@ -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