summaryrefslogtreecommitdiffstats
path: root/src/pybind/mgr/dashboard/run-backend-api-tests.sh
diff options
context:
space:
mode:
authorZack Cerza <zack@redhat.com>2018-11-15 19:47:30 +0100
committerZack Cerza <zack@redhat.com>2018-11-16 18:44:03 +0100
commit9e218316d91d328ecbd7c08f8aec08a190b5809c (patch)
treeca425b7b60479b72258b5795f2e4d5832fc27708 /src/pybind/mgr/dashboard/run-backend-api-tests.sh
parentWhen cloning teuthology, pass --depth 1 (diff)
downloadceph-9e218316d91d328ecbd7c08f8aec08a190b5809c.tar.xz
ceph-9e218316d91d328ecbd7c08f8aec08a190b5809c.zip
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 <zack@redhat.com>
Diffstat (limited to 'src/pybind/mgr/dashboard/run-backend-api-tests.sh')
-rwxr-xr-xsrc/pybind/mgr/dashboard/run-backend-api-tests.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/pybind/mgr/dashboard/run-backend-api-tests.sh b/src/pybind/mgr/dashboard/run-backend-api-tests.sh
index a549c69871e..070a7b7e6ac 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