Lines Matching refs:options

181     def run(self, options):  argument
187 if options.dryrun is True:
227 def log(self, logger, options): argument
246 if not options.quiet:
316 def run(self, logger, options): argument
332 pretest.run(options)
334 pretest.log(logger, options)
337 test.run(options)
341 test.log(logger, options)
344 posttest.run(options)
345 posttest.log(logger, options)
414 def run(self, logger, options): argument
429 pretest.run(options)
431 pretest.log(logger, options)
438 test.run(options)
442 test.log(logger, options)
445 posttest.run(options)
446 posttest.log(logger, options)
452 def __init__(self, options): argument
457 self.outputdir = os.path.join(options.outputdir, self.timestamp)
458 self.logger = self.setup_logging(options)
480 def addtest(self, pathname, options): argument
488 setattr(test, prop, getattr(options, prop))
493 def addtestgroup(self, dirname, filenames, options): argument
502 setattr(testgroup, prop, getattr(options, prop))
514 def read(self, logger, options): argument
524 if not len(config.read(options.runfile)):
525 fail("Coulnd't read config file %s" % options.runfile)
533 if 'tests' in config.options(section):
558 def write(self, options): argument
568 defaults = dict([(prop, getattr(options, prop)) for prop, _ in
580 with open(options.template, 'w') as f:
583 fail('Could not open \'%s\' for writing.' % options.template)
585 def complete_outputdirs(self, options): argument
615 def setup_logging(self, options): argument
625 if options.dryrun is True:
631 if options.cmd is not 'wrconfig':
654 def run(self, options): argument
663 self.tests[test].run(self.logger, options)
665 self.testgroups[testgroup].run(self.logger, options)
726 def find_tests(testrun, options): argument
733 for p in sorted(options.pathnames):
736 if options.do_groups:
737 testrun.addtestgroup(dirname, filenames, options)
740 testrun.addtest(os.path.join(dirname, f), options)
742 testrun.addtest(p, options)
805 (options, pathnames) = parser.parse_args()
807 if not options.runfile and not options.template:
808 options.cmd = 'runtests'
810 if options.runfile and len(pathnames):
813 options.pathnames = [os.path.abspath(path) for path in pathnames]
815 return options
819 options = parse_args()
820 testrun = TestRun(options)
822 if options.cmd is 'runtests':
823 find_tests(testrun, options)
824 elif options.cmd is 'rdconfig':
825 testrun.read(testrun.logger, options)
826 elif options.cmd is 'wrconfig':
827 find_tests(testrun, options)
828 testrun.write(options)
833 testrun.complete_outputdirs(options)
834 testrun.run(options)