tests: Update CORS geckodriver

Change-Id: I5ab762dfe0f85e346c4868ec4540884ba5f0a7f4
This commit is contained in:
Tim Burke
2024年03月14日 20:25:36 -07:00
parent b6dc24dbc0
commit af15ad53fb

View File

@@ -194,8 +194,12 @@ def run(args, url):
try:
browser = driver(**kwargs)
except Exception as e:
if not ('needs to be in PATH' in str(e) or
'SafariDriver was not found' in str(e)):
if not any(x in str(e) for x in (
'needs to be in PATH',
'SafariDriver was not found',
'OSError: [Errno 8] Exec format error',
'safaridriver not available for download',
)):
traceback.print_exc()
results.append(('SKIP', browser_name, str(e).strip()))
continue

View File

@@ -15,13 +15,15 @@
state:present
- name:fetch firefox driver
get_url:
url:https://github.com/mozilla/geckodriver/releases/download/v0.26.0/geckodriver-v0.26.0-linux64.tar.gz
url:https://github.com/mozilla/geckodriver/releases/download/v0.34.0/geckodriver-v0.34.0-linux64.tar.gz
dest:/tmp/geckodriver.tar.gz
- name:unpack firefox driver
unarchive:
src:/tmp/geckodriver.tar.gz
dest:/usr/local/bin
remote_src:true
- name:check selenium version
command:pip show selenium
- name:check firefox version
command:firefox --version
#- name: install chromium
Reference in New Issue
openstack/swift
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.

The note is not visible to the blocked user.