Lines Matching +full:pre +full:- +full:set

68         return t.tv_sec + t.tv_nsec * 1e-9
89 m, s = divmod(monotonic_time() - self.starttime, 60)
127 Read from the file descriptor. If 'drain' set, read until EOF.
167 The timeout for tests is measured in wall-clock time
194 signal = '-TERM'
207 If this is not a user-initiated kill and the test has not been
213 runtime = monotonic_time() - self.result.starttime
241 ret = '%s -E -u %s %s' % (SUDO, user, cmd)
292 kp = Popen([SUDO, "sh", "-c",
304 kp = Popen([SUDO, "sh", "-c",
313 cmd = f'{SUDO} sh -c "echo clear > {KMEMLEAK_FILE}"'
332 cmd = f'{SUDO} sh -c "echo scan > {KMEMLEAK_FILE}"'
354 m, s = divmod(monotonic_time() - self.result.starttime, 60)
376 pad = ' ' * (80 - (len(msga) + len(msgb)))
379 # The result line is always written to the log file. If -q was
383 write_log(bytearray(result_line, encoding='utf-8'), LOG_FILE)
396 encoding='utf-8')
418 props = ['outputdir', 'timeout', 'user', 'pre', 'pre_user', 'post',
422 pre=None, pre_user=None, post=None, post_user=None, argument
425 self.pre = pre or ''
447 Pre: %s%s
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
483 odir = os.path.join(self.outputdir, os.path.basename(self.pre))
484 pretest = Cmd(self.pre, identifier=self.identifier, outputdir=odir,
540 Pre: %s%s
545 self.timeout, self.user, self.pre, pre_user, self.post, post_user,
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
559 if len(self.pre) and not os.path.isabs(self.pre):
560 self.pre = os.path.join(self.pathname, self.pre)
566 auxfiles = [self.pre, self.post, self.failsafe]
600 Create Cmd instances for the pre/post/failsafe scripts. If the pre
605 if options.tags and not set(self.tags).intersection(set(options.tags)):
608 odir = os.path.join(self.outputdir, os.path.basename(self.pre))
609 pretest = Cmd(self.pre, outputdir=odir, timeout=self.timeout,
659 ('pre', ''),
703 # Prevent pre/post/failsafe scripts from running as regular tests
704 for f in [testgroup.pre, testgroup.post, testgroup.failsafe]:
721 if g.pre and os.path.basename(g.pre) in keeplist[group]:
736 TestGroup. Properties from individual sections override those set
742 failed = options.runfiles - set(parsed)
820 config.set(test, prop,
825 config.set(testgroup, 'tests', self.testgroups[testgroup].tests)
828 config.set(testgroup, prop,
845 contain files in one directory. Pre and post tests will create a
859 components -= 1
908 cmd = f'{SUDO} -c "echo scan=0 > {KMEMLEAK_FILE}"'
928 m, s = divmod(time() - self.starttime, 60)
955 os.write(sys.stdout.fileno(), bytearray(msg, encoding='utf-8'))
957 os.write(sys.stderr.fileno(), bytearray(msg, encoding='utf-8'))
984 testcmd = [SUDO, '-n', '-u', user, TRUE]
1072 value = set(os.path.abspath(p) for p in value.split(','))
1084 parser.add_option('-c', action='callback', callback=options_cb,
1087 parser.add_option('-d', action='store_true', default=False, dest='dryrun',
1089 parser.add_option('-D', action='store_true', default=False, dest='debug',
1091 parser.add_option('-l', action='callback', callback=options_cb,
1094 help='Read logfile and re-run tests which failed.')
1095 parser.add_option('-g', action='store_true', default=False,
1097 parser.add_option('-o', action='callback', callback=options_cb,
1100 parser.add_option('-i', action='callback', callback=options_cb,
1103 parser.add_option('-K', action='store_true', default=False, dest='kmsg',
1105 parser.add_option('-m', action='callback', callback=kmemleak_cb,
1108 parser.add_option('-p', action='callback', callback=options_cb,
1109 default='', dest='pre', metavar='script',
1110 type='string', help='Specify a pre script.')
1111 parser.add_option('-P', action='callback', callback=options_cb,
1114 parser.add_option('-q', action='store_true', default=False, dest='quiet',
1116 parser.add_option('-s', action='callback', callback=options_cb,
1119 parser.add_option('-S', action='callback', callback=options_cb,
1123 parser.add_option('-t', action='callback', callback=options_cb, default=60,
1126 parser.add_option('-u', action='callback', callback=options_cb,
1129 parser.add_option('-w', action='callback', callback=options_cb,
1132 parser.add_option('-x', action='callback', callback=options_cb, default='',
1134 help='Specify a user to execute the pre script.')
1135 parser.add_option('-X', action='callback', callback=options_cb, default='',
1138 parser.add_option('-T', action='callback', callback=options_cb, default='',
1141 parser.add_option('-I', action='callback', callback=options_cb, default=1,