diff options
Diffstat (limited to 'o3d/tests/lab/runner_util.py')
-rw-r--r-- | o3d/tests/lab/runner_util.py | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/o3d/tests/lab/runner_util.py b/o3d/tests/lab/runner_util.py index cad387f..f6e62c1 100644 --- a/o3d/tests/lab/runner_util.py +++ b/o3d/tests/lab/runner_util.py @@ -141,12 +141,15 @@ def UninstallO3DPlugin(): if util.IsWindows(): installer_path = os.path.join(const.PRODUCT_DIR_PATH, 'o3d.msi') os.system('msiexec.exe /x "%s" /q' % installer_path) - - else: - for path in const.INSTALL_PATHS: - if os.path.exists(path): + + # Forcibly remove plugins. + for path in const.INSTALL_PATHS: + if os.path.exists(path): + if util.IsWindows(): + os.remove(path) + else: os.system('echo g00gl3 | sudo -S rm -rf "%s"' % path) - + return not DoesAnO3DPluginExist() def DoesAnO3DPluginExist(): |