mirror of
https://github.com/servo/servo.git
synced 2025-08-10 16:05:43 +01:00
Update web-platform-tests to revision 3bfdeb8976fc51748935c8d1f1014dfba8e08dfb
This commit is contained in:
parent
fcd6beb608
commit
cb63cfd5c7
185 changed files with 3083 additions and 1074 deletions
|
@ -1,2 +1 @@
|
|||
mozprocess==1.0.0
|
||||
selenium==3.141.0
|
||||
|
|
|
@ -1,2 +1 @@
|
|||
mozprocess==1.0.0
|
||||
selenium==3.141.0
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
from __future__ import print_function
|
||||
import subprocess
|
||||
from .base import Browser, ExecutorBrowser, require_arg
|
||||
from ..webdriver_server import EdgeDriverServer
|
||||
from ..executors import executor_kwargs as base_executor_kwargs
|
||||
|
@ -16,6 +17,7 @@ __wptrunner__ = {"product": "edge",
|
|||
"executor_kwargs": "executor_kwargs",
|
||||
"env_extras": "env_extras",
|
||||
"env_options": "env_options",
|
||||
"run_info_extras": "run_info_extras",
|
||||
"timeout_multiplier": "get_timeout_multiplier"}
|
||||
|
||||
|
||||
|
@ -97,3 +99,17 @@ class EdgeBrowser(Browser):
|
|||
|
||||
def executor_browser(self):
|
||||
return ExecutorBrowser, {"webdriver_url": self.server.url}
|
||||
|
||||
|
||||
def run_info_extras(**kwargs):
|
||||
osReleaseCommand = "(Get-ItemProperty 'HKLM:\Software\Microsoft\Windows NT\CurrentVersion').ReleaseId"
|
||||
osBuildCommand = "(Get-ItemProperty 'HKLM:\Software\Microsoft\Windows NT\CurrentVersion').BuildLabEx"
|
||||
try:
|
||||
os_release = subprocess.check_output(["powershell.exe", osReleaseCommand]).strip()
|
||||
os_build = subprocess.check_output(["powershell.exe", osBuildCommand]).strip()
|
||||
except (subprocess.CalledProcessError, OSError):
|
||||
return {}
|
||||
|
||||
rv = {"os_build": os_build,
|
||||
"os_release": os_release}
|
||||
return rv
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue