Lines Matching refs:options

926     def validate(self, parser, options, context):  argument
931 if options.app is None:
936 options.app = build_obj.get_binary_path()
944 elif options.app == "dist" and build_obj:
945 options.app = build_obj.get_binary_path(where="staged-package")
947 options.app = self.get_full_path(options.app, parser.oldcwd)
948 if not os.path.exists(options.app):
951 "$objdir/_tests/testing/mochitest/runtests.py?".format(options.app)
954 if options.flavor is None:
955 options.flavor = "plain"
958 if options.flavor in value["aliases"]:
959 options.flavor = value["suite"]
962 if options.gmp_path is None and options.app and build_obj:
969 options.gmp_path = os.pathsep.join(
973 if options.totalChunks is not None and options.thisChunk is None:
976 if options.extra_mozinfo_json:
977 if not os.path.isfile(options.extra_mozinfo_json):
980 % options.extra_mozinfo_json
983 options.extra_mozinfo_json = json.load(open(options.extra_mozinfo_json))
985 if options.totalChunks:
986 if not 1 <= options.thisChunk <= options.totalChunks:
989 if options.chunkByDir and options.chunkByRuntime:
992 if options.xrePath is None:
995 if options.app != parser.get_default("app"):
996 options.xrePath = os.path.dirname(options.app)
998 options.xrePath = os.path.join(
999 os.path.dirname(options.xrePath), "Resources"
1003 options.xrePath = build_obj.bindir
1010 if options.xrePath:
1011 options.xrePath = self.get_full_path(options.xrePath, parser.oldcwd)
1013 if options.profilePath:
1014 options.profilePath = self.get_full_path(options.profilePath, parser.oldcwd)
1016 if options.utilityPath:
1017 options.utilityPath = self.get_full_path(options.utilityPath, parser.oldcwd)
1019 if options.certPath:
1020 options.certPath = self.get_full_path(options.certPath, parser.oldcwd)
1022 options.certPath = os.path.join(
1026 if options.symbolsPath and len(urlparse(options.symbolsPath).scheme) < 2:
1027 options.symbolsPath = self.get_full_path(options.symbolsPath, parser.oldcwd)
1028 elif not options.symbolsPath and build_obj:
1029 options.symbolsPath = os.path.join(
1033 if options.debugOnFailure and not options.jsdebugger:
1036 if options.jsdebuggerPath and not options.jsdebugger:
1039 if options.debuggerArgs and not options.debugger:
1042 if options.valgrind or options.debugger:
1045 options.marionette_startup_timeout = 900
1046 options.marionette_socket_timeout = 540
1048 if options.store_chrome_manifest:
1049 options.store_chrome_manifest = os.path.abspath(
1050 options.store_chrome_manifest
1052 if not os.path.isdir(os.path.dirname(options.store_chrome_manifest)):
1055 "chrome manifest." % options.store_chrome_manifest
1058 if options.jscov_dir_prefix:
1059 options.jscov_dir_prefix = os.path.abspath(options.jscov_dir_prefix)
1060 if not os.path.isdir(options.jscov_dir_prefix):
1063 "data." % options.jscov_dir_prefix
1066 if options.testingModulesDir is None:
1076 options.testingModulesDir = p
1080 options.stagedAddons = [
1087 options.stagedAddons = [
1094 and plugins_dir not in options.extraProfileFiles
1096 options.extraProfileFiles.append(plugins_dir)
1100 if options.testingModulesDir is not None:
1101 options.testingModulesDir = os.path.normpath(options.testingModulesDir)
1103 if not os.path.isabs(options.testingModulesDir):
1104 options.testingModulesDir = os.path.abspath(options.testingModulesDir)
1106 if not os.path.isdir(options.testingModulesDir):
1109 % options.testingModulesDir
1112 options.testingModulesDir = options.testingModulesDir.replace("\\", "/")
1113 if options.testingModulesDir[-1] != "/":
1114 options.testingModulesDir += "/"
1116 if options.runUntilFailure:
1117 if not options.repeat:
1118 options.repeat = 29
1120 if options.dumpOutputDirectory is None:
1121 options.dumpOutputDirectory = tempfile.gettempdir()
1123 if options.dumpAboutMemoryAfterTest or options.dumpDMDAfterTest:
1124 if not os.path.isdir(options.dumpOutputDirectory):
1127 % options.dumpOutputDirectory
1130 if options.useTestMediaDevices:
1153 if options.flavor in ("a11y", "chrome") and options.e10s:
1156 "--disable-e10s.".format(options.flavor)
1161 (not options.e10s)
1162 and options.fission
1163 and ("fission.autostart=true" not in options.extraPrefs)
1164 and ("fission.autostart=false" not in options.extraPrefs)
1166 options.fission = False
1168 options.leakThresholds = {
1169 "default": options.defaultLeakThreshold,
1170 "tab": options.defaultLeakThreshold,
1171 "forkserver": options.defaultLeakThreshold,
1178 options.leakThresholds["tab"] = 1000
1184 if options.test_paths and build_obj:
1186 options.test_paths = [
1187 build_obj._wrap_path_argument(p).relpath() for p in options.test_paths
1190 return options
1297 def validate(self, parser, options, context): argument
1301 options.log_mach = "-"
1305 options.extensionsToInstall = [
1310 if options.remoteWebServer is None:
1311 options.remoteWebServer = moznetwork.get_ip()
1313 options.webServer = options.remoteWebServer
1315 if options.app is None:
1316 options.app = "org.mozilla.geckoview.test_runner"
1319 options.xrePath = os.environ["MOZ_HOST_BIN"]
1322 if options.xrePath is None:
1323 options.xrePath = options.utilityPath
1326 options.topsrcdir = build_obj.topsrcdir
1328 if options.pidFile != "":
1329 f = open(options.pidFile, "w")
1333 if options.coverage_output_dir and not options.enable_coverage:
1335 if options.enable_coverage:
1336 if not options.autorun:
1338 if not options.coverage_output_dir:
1342 parent_dir = os.path.dirname(options.coverage_output_dir)
1343 if not os.path.isdir(options.coverage_output_dir):
1351 options.remoteappname = options.app
1352 return options