From 886d82e61a5131bd53270e38f6b3a7da73013366 Mon Sep 17 00:00:00 2001 From: Feng Shengqin Date: Tue, 22 Nov 2016 03:55:36 +0800 Subject: [PATCH] Delete python bytecode file This patch delete python bytecode including pyo before every test run. Change-Id: Idc6d0f58c139759a7b9c513a19fd8d8836d6bf0d --- run_tests.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/run_tests.sh b/run_tests.sh index 8df97946..6cf60b70 100755 --- a/run_tests.sh +++ b/run_tests.sh @@ -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 }