Lines Matching refs:options

245     def run(self, options):
251 if options.dryrun is True:
297 def log(self, logger, options):
319 if not options.quiet:
409 def run(self, logger, options):
426 pretest.run(options)
428 pretest.log(logger, options)
431 test.run(options)
435 test.log(logger, options)
438 posttest.run(options)
439 posttest.log(logger, options)
513 def run(self, logger, options):
520 if options.tags and not set(self.tags).intersection(set(options.tags)):
532 pretest.run(options)
534 pretest.log(logger, options)
542 test.run(options)
546 test.log(logger, options)
549 posttest.run(options)
550 posttest.log(logger, options)
556 def __init__(self, options):
561 self.outputdir = os.path.join(options.outputdir, self.timestamp)
562 self.logger = self.setup_logging(options)
585 def addtest(self, pathname, options):
593 setattr(test, prop, getattr(options, prop))
598 def addtestgroup(self, dirname, filenames, options):
607 setattr(testgroup, prop, getattr(options, prop))
637 def read(self, logger, options):
647 parsed = config.read(options.runfiles)
648 failed = options.runfiles - set(parsed)
658 testdir = options.testdir
661 if ('arch' in config.options(section) and
677 if 'tests' in config.options(section):
694 elif 'autotests' in config.options(section):
717 def write(self, options):
727 defaults = dict([(prop, getattr(options, prop)) for prop, _ in
747 with open(options.template, 'w') as f:
750 fail('Could not open \'%s\' for writing.' % options.template)
782 def setup_logging(self, options):
792 if options.dryrun is True:
798 if not options.template:
821 def run(self, options):
825 if not options.dryrun:
831 self.tests[test].run(self.logger, options)
833 self.testgroups[testgroup].run(self.logger, options)
893 def find_tests(testrun, options):
900 for p in sorted(options.pathnames):
903 if options.do_groups:
904 testrun.addtestgroup(dirname, filenames, options)
907 testrun.addtest(os.path.join(dirname, f), options)
909 testrun.addtest(p, options)
912 def filter_tests(testrun, options):
914 fh = open(options.logfile, "r", errors='replace')
927 m = re.match(re.escape(options.testdir) + r'(.*)', group)
1007 (options, pathnames) = parser.parse_args()
1009 if options.runfiles and len(pathnames):
1012 options.pathnames = [os.path.abspath(path) for path in pathnames]
1014 return options
1018 options = parse_args()
1020 testrun = TestRun(options)
1022 if options.runfiles:
1023 testrun.read(testrun.logger, options)
1025 find_tests(testrun, options)
1027 if options.logfile:
1028 filter_tests(testrun, options)
1030 if options.template:
1031 testrun.write(options)
1035 testrun.run(options)