Lines Matching refs:os

28 import os
136 buf = os.read(fd, 4096).decode()
191 me = getpwuid(os.getuid())
230 old = os.umask(0)
231 if not os.path.isdir(self.outputdir):
232 os.makedirs(self.outputdir, mode=0o777)
233 os.umask(old)
275 logname = getpwuid(os.getuid()).pw_name
298 with open(os.path.join(self.outputdir, 'stdout'), 'w') as out:
302 with open(os.path.join(self.outputdir, 'stderr'), 'w') as err:
306 with open(os.path.join(self.outputdir, 'merged'), 'w') as merged:
361 pretest = Cmd(self.pre, outputdir=os.path.join(self.outputdir,
362 os.path.basename(self.pre)), timeout=self.timeout,
366 posttest = Cmd(self.post, outputdir=os.path.join(self.outputdir,
367 os.path.basename(self.post)), timeout=self.timeout,
417 if len(self.pre) and not os.path.isabs(self.pre):
418 self.pre = os.path.join(self.pathname, self.pre)
419 if len(self.post) and not os.path.isabs(self.post):
420 self.post = os.path.join(self.pathname, self.post)
426 if self.pathname != os.path.dirname(f):
446 if not verify_file(os.path.join(self.pathname, test)):
460 pretest = Cmd(self.pre, outputdir=os.path.join(self.outputdir,
461 os.path.basename(self.pre)), timeout=self.timeout,
463 posttest = Cmd(self.post, outputdir=os.path.join(self.outputdir,
464 os.path.basename(self.post)), timeout=self.timeout,
474 test = Cmd(os.path.join(self.pathname, fname),
475 outputdir=os.path.join(self.outputdir, fname),
497 self.outputdir = os.path.join(options.outputdir, self.timestamp)
570 self.outputdir = os.path.join(self.outputdir, self.timestamp)
650 tmp_dict[testfile].outputdir = os.path.join(base, uniq)
673 old = os.umask(0)
674 os.makedirs(self.outputdir, mode=0o777)
675 os.umask(old)
678 filename = os.path.join(self.outputdir, 'log')
699 os.chdir(self.outputdir)
728 if os.path.isdir(pathname) or os.path.islink(pathname):
731 if os.path.isfile(pathname) and os.access(pathname, os.X_OK):
774 if os.path.isdir(p):
775 for dirname, _, filenames in os.walk(p):
780 testrun.addtest(os.path.join(dirname, f), options)
807 setattr(parser.values, option.dest, os.path.abspath(value))
853 options.pathnames = [os.path.abspath(path) for path in pathnames]