From: Zack Cerza Date: Thu, 15 Nov 2018 18:47:30 +0000 (-0700) Subject: Remove any dashboard .pyc files before testing X-Git-Tag: v14.1.0~869^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=9e218316d91d328ecbd7c08f8aec08a190b5809c;p=ceph.git Remove any dashboard .pyc files before testing Things like 'git rm' and 'git mv' don't clean up any .pyc files that might have been generated previously, so if those aren't removed, we might not be running the exact code that we intend to. Signed-off-by: Zack Cerza --- diff --git a/src/pybind/mgr/dashboard/run-backend-api-tests.sh b/src/pybind/mgr/dashboard/run-backend-api-tests.sh index a549c69871e0..070a7b7e6acf 100755 --- a/src/pybind/mgr/dashboard/run-backend-api-tests.sh +++ b/src/pybind/mgr/dashboard/run-backend-api-tests.sh @@ -99,6 +99,7 @@ EOF run_teuthology_tests() { cd "$BUILD_DIR" + find ../src/pybind/mgr/dashboard/ -name '*.pyc' -exec rm -f {} \; source $TEMP_DIR/venv/bin/activate