def __init__(self, metadata_root, product, debug, browser_version=None, extras=None): import mozinfo self._update_mozinfo(metadata_root) self.update(mozinfo.info) from update.tree import GitTree try: # GitTree.__init__ throws if we are not in a git tree. rev = GitTree(log_error=False).rev except (OSError, subprocess.CalledProcessError): rev = None if rev: self["revision"] = rev self["product"] = product if debug is not None: self["debug"] = debug elif "debug" not in self: # Default to release self["debug"] = False if browser_version: self["browser_version"] = browser_version if extras is not None: self.update(extras)
def __init__(self, metadata_root, product, debug, browser_version=None, browser_channel=None, verify=None, extras=None, enable_webrender=False): import mozinfo self._update_mozinfo(metadata_root) self.update(mozinfo.info) from update.tree import GitTree try: # GitTree.__init__ throws if we are not in a git tree. rev = GitTree(log_error=False).rev except (OSError, subprocess.CalledProcessError): rev = None if rev: self["revision"] = rev self["product"] = product if debug is not None: self["debug"] = debug elif "debug" not in self: # Default to release self["debug"] = False if browser_version: self["browser_version"] = browser_version if browser_channel: self["browser_channel"] = browser_channel self["verify"] = verify if "wasm" not in self: self["wasm"] = False if extras is not None: self.update(extras) # Until the test harness can understand default pref values, # (https://bugzilla.mozilla.org/show_bug.cgi?id=1577912) this value # should by synchronized with the default pref value indicated in # StaticPrefList.yaml. # # Currently for automation, the pref (and `sw-e10s`) defaults to true in # nightly builds and false otherwise but can be overridden with # `--setpref`. If overridden, the value would be initialized in # `run_info_extras` and be supplied in the `extras` parameter. if "sw-e10s" not in self: self["sw-e10s"] = self.get("nightly_build", False) self["headless"] = extras.get("headless", False) self["webrender"] = enable_webrender
def __init__(self, metadata_root, product, debug, browser_version=None, browser_channel=None, verify=None, extras=None, enable_webrender=False): import mozinfo self._update_mozinfo(metadata_root) self.update(mozinfo.info) from update.tree import GitTree try: # GitTree.__init__ throws if we are not in a git tree. rev = GitTree(log_error=False).rev except (OSError, subprocess.CalledProcessError): rev = None if rev: self["revision"] = rev self["product"] = product if debug is not None: self["debug"] = debug elif "debug" not in self: # Default to release self["debug"] = False if browser_version: self["browser_version"] = browser_version if browser_channel: self["browser_channel"] = browser_channel self["verify"] = verify if "wasm" not in self: self["wasm"] = False if extras is not None: self.update(extras) self["headless"] = extras.get("headless", False) self["webrender"] = enable_webrender