Lines Matching +full:total +full:- +full:timeout

2 # SPDX-License-Identifier: CDDL-1.0
69 return t.tv_sec + t.tv_nsec * 1e-9
73 total = 0 variable in Result
89 Result.total += 1
90 m, s = divmod(monotonic_time() - self.starttime, 60)
163 timeout=None, user=None, tags=None): argument
168 The timeout for tests is measured in wall-clock time
170 self.timeout = timeout
176 if self.timeout is None:
177 self.timeout = 60
184 Timeout: %d
186 ''' % (self.pathname, self.identifier, self.outputdir, self.timeout, self.user)
190 Kill a running command due to timeout, or ^C from the keyboard. If
195 signal = '-TERM'
208 If this is not a user-initiated kill and the test has not been
214 runtime = monotonic_time() - self.result.starttime
215 if int(self.timeout) > runtime:
250 ret = '%s -E -u %s %s %s' % (SUDO, user, tmpdirarg, cmd)
301 kp = Popen([SUDO, "sh", "-c",
313 kp = Popen([SUDO, "sh", "-c",
322 cmd = f'{SUDO} sh -c "echo clear > {KMEMLEAK_FILE}"'
326 # Allow a special timeout value of 0 to mean infinity
327 if int(self.timeout) == 0:
328 self.timeout = sys.maxsize / (10 ** 9)
330 int(self.timeout), self.kill_cmd, [proc, options, kmemleak]
341 cmd = f'{SUDO} sh -c "echo scan > {KMEMLEAK_FILE}"'
359 Result.total += 1
363 m, s = divmod(monotonic_time() - self.result.starttime, 60)
385 pad = ' ' * (80 - (len(msga) + len(msgb)))
388 # The result line is always written to the log file. If -q was
392 write_log(bytearray(result_line, encoding='utf-8'), LOG_FILE)
405 encoding='utf-8')
427 props = ['outputdir', 'timeout', 'user', 'pre', 'pre_user', 'post',
454 Timeout: %d
460 ''' % (self.pathname, self.identifier, self.outputdir, self.timeout, self.user,
494 timeout=self.timeout, user=self.pre_user)
496 outputdir=self.outputdir, timeout=self.timeout,
500 outputdir=odir, timeout=self.timeout,
504 timeout=self.timeout, user=self.post_user)
547 Timeout: %s
554 self.timeout, self.user, self.pre, pre_user, self.post, post_user,
618 pretest = Cmd(self.pre, outputdir=odir, timeout=self.timeout,
621 posttest = Cmd(self.post, outputdir=odir, timeout=self.timeout,
633 timeout=self.timeout, user=self.user,
636 failsafe = Cmd(self.failsafe, outputdir=odir, timeout=self.timeout,
666 ('timeout', 60),
751 failed = options.runfiles - set(parsed)
895 uniq = path.split('/', cut)[-1]
937 cmd = f'{SUDO} -c "echo scan=0 > {KMEMLEAK_FILE}"'
949 if Result.total == 0:
957 m, s = divmod(time() - self.starttime, 60)
961 float(Result.total)) * 100))
984 os.write(sys.stdout.fileno(), bytearray(msg, encoding='utf-8'))
986 os.write(sys.stderr.fileno(), bytearray(msg, encoding='utf-8'))
1013 testcmd = [SUDO, '-n', '-u', user, TRUE]
1113 parser.add_option('-c', action='callback', callback=options_cb,
1116 parser.add_option('-d', action='store_true', default=False, dest='dryrun',
1118 parser.add_option('-D', action='store_true', default=False, dest='debug',
1120 parser.add_option('-l', action='callback', callback=options_cb,
1123 help='Read logfile and re-run tests which failed.')
1124 parser.add_option('-g', action='store_true', default=False,
1126 parser.add_option('-o', action='callback', callback=options_cb,
1129 parser.add_option('-i', action='callback', callback=options_cb,
1132 parser.add_option('-K', action='store_true', default=False, dest='kmsg',
1134 parser.add_option('-m', action='callback', callback=kmemleak_cb,
1137 parser.add_option('-p', action='callback', callback=options_cb,
1140 parser.add_option('-P', action='callback', callback=options_cb,
1143 parser.add_option('-q', action='store_true', default=False, dest='quiet',
1145 parser.add_option('-s', action='callback', callback=options_cb,
1148 parser.add_option('-S', action='callback', callback=options_cb,
1152 parser.add_option('-t', action='callback', callback=options_cb, default=60,
1153 dest='timeout', metavar='seconds', type='int',
1154 help='Timeout (in seconds) for an individual test.')
1155 parser.add_option('-u', action='callback', callback=options_cb,
1158 parser.add_option('-w', action='callback', callback=options_cb,
1161 parser.add_option('-x', action='callback', callback=options_cb, default='',
1164 parser.add_option('-X', action='callback', callback=options_cb, default='',
1167 parser.add_option('-T', action='callback', callback=options_cb, default='',
1170 parser.add_option('-I', action='callback', callback=options_cb, default=1,