diff options
author | Zack Cerza <zack@redhat.com> | 2018-11-15 19:47:30 +0100 |
---|---|---|
committer | Zack Cerza <zack@redhat.com> | 2018-11-16 18:44:03 +0100 |
commit | 9e218316d91d328ecbd7c08f8aec08a190b5809c (patch) | |
tree | ca425b7b60479b72258b5795f2e4d5832fc27708 /src/pybind/mgr/dashboard/run-backend-api-tests.sh | |
parent | When cloning teuthology, pass --depth 1 (diff) | |
download | ceph-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-x | src/pybind/mgr/dashboard/run-backend-api-tests.sh | 1 |
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 |