Lines Matching defs:pathname

161     def __init__(self, pathname, identifier=None, outputdir=None,
163 self.pathname = pathname
185 ''' % (self.pathname, self.identifier, self.outputdir, self.timeout, self.user)
277 privcmd = self.update_cmd_privs(self.pathname, self.user)
293 f"echo ZTS run {self.pathname} > /dev/kmsg"])
305 f"echo ZTS run {self.pathname} > /dev/ttyu0"])
372 msga = 'Test (%s): %s%s ' % (self.identifier, self.pathname, user)
374 msga = 'Test: %s%s ' % (self.pathname, user)
421 def __init__(self, pathname,
424 super(Test, self).__init__(pathname, **kwargs)
451 ''' % (self.pathname, self.identifier, self.outputdir, self.timeout, self.user,
460 files = [self.pre, self.pathname, self.post, self.failsafe]
472 self.pathname, LOG_ERR)
486 test = Cmd(self.pathname, identifier=self.identifier,
498 if len(pretest.pathname):
505 if test.result.result == 'KILLED' and len(failsafe.pathname):
513 if len(posttest.pathname):
521 def __init__(self, pathname, tests=None, **kwargs):
522 super(TestGroup, self).__init__(pathname, **kwargs)
544 ''' % (self.pathname, self.identifier, self.outputdir, self.tests,
560 self.pre = os.path.join(self.pathname, self.pre)
562 self.post = os.path.join(self.pathname, self.post)
564 self.post = os.path.join(self.pathname, self.post)
570 if f != self.failsafe and self.pathname != os.path.dirname(f):
573 "directory.\n" % (self.pathname, f), LOG_ERR)
579 (self.pathname, f), LOG_ERR)
585 self.pathname, LOG_ERR)
590 if not verify_file(os.path.join(self.pathname, test)):
594 (test, self.pathname), LOG_ERR)
616 if len(pretest.pathname):
623 test = Cmd(os.path.join(self.pathname, fname), outputdir=odir,
631 if test.result.result == 'KILLED' and len(failsafe.pathname):
639 if len(posttest.pathname):
679 def addtest(self, pathname, options):
685 test = Test(pathname)
690 self.tests[pathname] = test
760 pathname = sectiondir
762 pathname = os.path.join(testdir, sectiondir)
764 pathname = sectiondir
766 testgroup = TestGroup(os.path.abspath(pathname),
840 backwards one pathname component at a time, to create a unique
964 def verify_file(pathname):
966 Verify that the supplied pathname is an executable regular file.
968 if os.path.isdir(pathname) or os.path.islink(pathname):
972 script_path = pathname + ext