Lines Matching refs:options

211     def run(self, options):
217 if options.dryrun is True:
261 def log(self, logger, options):
280 if not options.quiet:
352 def run(self, logger, options):
368 pretest.run(options)
370 pretest.log(logger, options)
373 test.run(options)
377 test.log(logger, options)
380 posttest.run(options)
381 posttest.log(logger, options)
450 def run(self, logger, options):
465 pretest.run(options)
467 pretest.log(logger, options)
474 test.run(options)
478 test.log(logger, options)
481 posttest.run(options)
482 posttest.log(logger, options)
488 def __init__(self, options):
493 self.outputdir = os.path.join(options.outputdir, self.timestamp)
494 self.logger = self.setup_logging(options)
516 def addtest(self, pathname, options):
524 setattr(test, prop, getattr(options, prop))
529 def addtestgroup(self, dirname, filenames, options):
538 setattr(testgroup, prop, getattr(options, prop))
550 def read(self, logger, options):
560 if not len(config.read(options.runfile)):
561 fail("Coulnd't read config file %s" % options.runfile)
569 if 'tests' in config.options(section):
591 def write(self, options):
601 defaults = dict([(prop, getattr(options, prop)) for prop, _ in
613 with open(options.template, 'w') as f:
616 fail('Could not open \'%s\' for writing.' % options.template)
648 def setup_logging(self, options):
658 if options.dryrun is True:
664 if options.cmd is not 'wrconfig':
687 def run(self, options):
696 self.tests[test].run(self.logger, options)
698 self.testgroups[testgroup].run(self.logger, options)
757 def find_tests(testrun, options):
764 for p in sorted(options.pathnames):
767 if options.do_groups:
768 testrun.addtestgroup(dirname, filenames, options)
771 testrun.addtest(os.path.join(dirname, f), options)
773 testrun.addtest(p, options)
836 (options, pathnames) = parser.parse_args()
838 if not options.runfile and not options.template:
839 options.cmd = 'runtests'
841 if options.runfile and len(pathnames):
844 options.pathnames = [os.path.abspath(path) for path in pathnames]
846 return options
850 options = parse_args()
851 testrun = TestRun(options)
853 if options.cmd is 'runtests':
854 find_tests(testrun, options)
855 elif options.cmd is 'rdconfig':
856 testrun.read(testrun.logger, options)
857 elif options.cmd is 'wrconfig':
858 find_tests(testrun, options)
859 testrun.write(options)
865 testrun.run(options)