Lines Matching defs:failsafe

419              'post_user', 'failsafe', 'failsafe_user', 'tags']
423 failsafe=None, failsafe_user=None, tags=None, **kwargs):
429 self.failsafe = failsafe or ''
452 self.pre, pre_user, self.post, post_user, self.failsafe,
457 Check the pre/post/failsafe scripts, user and Test. Omit the Test from
460 files = [self.pre, self.pathname, self.post, self.failsafe]
479 Create Cmd instances for the pre/post/failsafe scripts. If the pre
481 If the Test is killed, also run the failsafe script.
489 odir = os.path.join(self.outputdir, os.path.basename(self.failsafe))
490 failsafe = Cmd(self.failsafe, identifier=self.identifier,
505 if test.result.result == 'KILLED' and len(failsafe.pathname):
506 failsafe.run(options, kmemleak=False)
507 failsafe.log(options, suppress_console=True)
546 self.failsafe, failsafe_user, self.tags)
553 Check the pre/post/failsafe scripts, user and tests in this TestGroup.
557 # If the pre/post/failsafe scripts are relative pathnames, convert to
563 if len(self.failsafe) and not os.path.isabs(self.failsafe):
566 auxfiles = [self.pre, self.post, self.failsafe]
570 if f != self.failsafe and self.pathname != os.path.dirname(f):
600 Create Cmd instances for the pre/post/failsafe scripts. If the pre
602 post script regardless. Run the failsafe script when a test is killed.
626 odir = os.path.join(odir, os.path.basename(self.failsafe))
627 failsafe = Cmd(self.failsafe, outputdir=odir, timeout=self.timeout,
631 if test.result.result == 'KILLED' and len(failsafe.pathname):
632 failsafe.run(options, dryrun=dryrun, kmemleak=False)
633 failsafe.log(options, suppress_console=True)
663 ('failsafe', ''),
703 # Prevent pre/post/failsafe scripts from running as regular tests
704 for f in [testgroup.pre, testgroup.post, testgroup.failsafe]:
774 elif prop == 'failsafe':
775 failsafe = config.get(sect, prop)
777 os.path.join(testdir, failsafe))
792 if prop == 'failsafe':
793 failsafe = config.get(sect, prop)
795 os.path.join(testdir, failsafe))
1117 default='', dest='failsafe', metavar='script',
1118 type='string', help='Specify a failsafe script.')
1122 help='Specify a user to execute the failsafe script.')