Delete python bytecode file

This patch delete python bytecode
including pyo before every test run.

Change-Id: Idc6d0f58c139759a7b9c513a19fd8d8836d6bf0d
This commit is contained in:
Feng Shengqin 2016-11-22 03:55:36 +08:00
parent 9176fa7925
commit 886d82e61a
1 changed files with 2 additions and 2 deletions

View File

@ -49,8 +49,8 @@ for arg in "$@"; do
done
function run_tests {
# Cleanup *pyc
${wrapper} find . -type f -name "*.pyc" -delete
# Cleanup *pyc and *pyo
${wrapper} find . -type f -name "*.py[c|o]" -delete
# Just run the test suites in current environment
${wrapper} $NOSETESTS
}