summaryrefslogtreecommitdiffstats
path: root/o3d/tests/lab
diff options
context:
space:
mode:
authorkkania@google.com <kkania@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-10-21 17:06:52 +0000
committerkkania@google.com <kkania@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-10-21 17:06:52 +0000
commit781acaa9cef1589ddc38039571ca876d584f3949 (patch)
tree495a54a77078896ea013cc8a9ca66411cc96636e /o3d/tests/lab
parent762c554314d15ac62e997758d7a4f8e0e35d3fce (diff)
downloadchromium_src-781acaa9cef1589ddc38039571ca876d584f3949.zip
chromium_src-781acaa9cef1589ddc38039571ca876d584f3949.tar.gz
chromium_src-781acaa9cef1589ddc38039571ca876d584f3949.tar.bz2
Forcibly remove all plugin files.
Review URL: http://codereview.chromium.org/313007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@29659 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'o3d/tests/lab')
-rw-r--r--o3d/tests/lab/run_lab_test.py2
-rw-r--r--o3d/tests/lab/runner_util.py13
2 files changed, 9 insertions, 6 deletions
diff --git a/o3d/tests/lab/run_lab_test.py b/o3d/tests/lab/run_lab_test.py
index db2f798..028c61a 100644
--- a/o3d/tests/lab/run_lab_test.py
+++ b/o3d/tests/lab/run_lab_test.py
@@ -308,7 +308,7 @@ def main(argv):
if not configure_ie.ConfigureIE():
logging.error('Failed to configure IE.')
all_test_passed = False
- continue
+ continue
# Run selenium tests.
if RunTest(sel_name) != 0:
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():