Lines Matching refs:options
206 options = parser.parse_args()
208 if not options.dir:
209 options.dir = "monkeys-%s" % CurrentTimestamp()
211 if not options.packages:
212 options.packages = [
234 return options
245 options = ParseOptions()
259 pattern = "%%0%dd" % len(str(options.runs-1))
262 if os.path.exists(options.dir) and not os.path.isdir(options.dir):
264 % options.dir)
266 elif not os.path.exists(options.dir):
267 os.makedirs(options.dir)
270 for run in range(1, options.runs+1):
271 PrintStatus("Run %d of %d: %s" % (run, options.runs,
293 filebase = os.path.sep.join((options.dir, pattern % run))
319 for pkg in options.packages:
322 if options.type == "anr":
325 if options.type == "crash":
327 if options.description:
329 cmd.append("'" + options.description + "'")
330 cmd.append(str(options.events))