mirror of
https://github.com/servo/servo.git
synced 2025-08-06 22:15:33 +01:00
Add --base option to test-perf.
This commit is contained in:
parent
657b2339a1
commit
109df3328a
6 changed files with 91 additions and 31 deletions
|
@ -71,11 +71,11 @@ def generate_placeholder(testcase):
|
|||
return [timings]
|
||||
|
||||
|
||||
def run_gecko_test(testcase, timeout, is_async):
|
||||
def run_gecko_test(testcase, url, timeout, is_async):
|
||||
with create_gecko_session() as driver:
|
||||
driver.set_page_load_timeout(timeout)
|
||||
try:
|
||||
driver.get(testcase)
|
||||
driver.get(url)
|
||||
except TimeoutException:
|
||||
print("Timeout!")
|
||||
return generate_placeholder(testcase)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue