Lines Matching refs:os

31 import os
153 buf = os.read(fd, 4096).decode('utf-8', errors='ignore')
218 me = getpwuid(os.getuid())
257 old = os.umask(0)
258 if not os.path.isdir(self.outputdir):
259 os.makedirs(self.outputdir, mode=0o777)
260 os.umask(old)
307 logname = getpwuid(os.getuid()).pw_name
333 with io.open(os.path.join(self.outputdir, 'stdout'),
340 with io.open(os.path.join(self.outputdir, 'stderr'),
347 with io.open(os.path.join(self.outputdir, 'merged'),
414 odir = os.path.join(self.outputdir, os.path.basename(self.pre))
420 odir = os.path.join(self.outputdir, os.path.basename(self.post))
480 if len(self.pre) and not os.path.isabs(self.pre):
481 self.pre = os.path.join(self.pathname, self.pre)
482 if len(self.post) and not os.path.isabs(self.post):
483 self.post = os.path.join(self.pathname, self.post)
489 if self.pathname != os.path.dirname(f):
509 verify_file(os.path.join(self.pathname, f))]
523 odir = os.path.join(self.outputdir, os.path.basename(self.pre))
526 odir = os.path.join(self.outputdir, os.path.basename(self.post))
537 test = Cmd(os.path.join(self.pathname, fname),
538 outputdir=os.path.join(self.outputdir, fname),
561 self.outputdir = os.path.join(options.outputdir, self.timestamp)
627 if g.pre and os.path.basename(g.pre) in keeplist[group]:
633 directory, base = os.path.split(test)
656 self.outputdir = os.path.join(self.outputdir, self.timestamp)
668 if os.path.isdir(sectiondir):
670 elif os.path.isdir(os.path.join(testdir, sectiondir)):
671 pathname = os.path.join(testdir, sectiondir)
675 testgroup = TestGroup(os.path.abspath(pathname),
700 filenames = os.listdir(pathname)
777 tmp_dict[testfile].outputdir = os.path.join(base, uniq)
800 old = os.umask(0)
801 os.makedirs(self.outputdir, mode=0o777)
802 os.umask(old)
805 filename = os.path.join(self.outputdir, 'log')
827 os.chdir(self.outputdir)
857 if os.path.isdir(pathname) or os.path.islink(pathname):
860 if os.path.isfile(pathname) and os.access(pathname, os.X_OK):
901 if os.path.isdir(p):
902 for dirname, _, filenames in os.walk(p):
907 testrun.addtest(os.path.join(dirname, f), options)
952 value = set(os.path.abspath(p) for p in value.split(','))
957 setattr(parser.values, option.dest, os.path.abspath(value))
1012 options.pathnames = [os.path.abspath(path) for path in pathnames]