]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
Remove any dashboard .pyc files before testing 25121/head
authorZack Cerza <zack@redhat.com>
Thu, 15 Nov 2018 18:47:30 +0000 (11:47 -0700)
committerZack Cerza <zack@redhat.com>
Fri, 16 Nov 2018 17:44:03 +0000 (10:44 -0700)
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>
src/pybind/mgr/dashboard/run-backend-api-tests.sh

index a549c69871e0c973dc394edccd334c95e921ed37..070a7b7e6acf9733676b3205ac170294a45a8183 100755 (executable)
@@ -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