Lines Matching refs:os
28 import os
69 if os.path.exists('/proc/version'):
138 cmdline = '%s -cronjob' % os.path.abspath(sys.argv[0])
147 cmdline += ' %s "%s"' % (arg, os.path.abspath(args.next()))
151 cmdline += ' %s "%s"' % (arg, os.path.abspath(file))
156 cmdline += ' -o "%s"' % os.path.abspath(self.testdir)
174 if not os.path.exists('/etc/default/grub'):
180 if not os.path.exists(cfg):
287 os.path.basename(sysvals.dmesgfile))
373 os.path.basename(sysvals.ftracefile))
703 if not os.path.exists(crondir):
705 if not os.path.exists(crondir):
714 if os.path.exists(backfile):
719 if os.path.exists(cronfile):
798 os.remove(grubfile)
957 if(os.path.exists(val) == False):
970 if(os.path.exists(val) == False):
1078 if testrun and os.path.isdir(sysvals.testdir) and \
1079 os.getuid() == 0 and 'SUDO_USER' in os.environ:
1081 call(cmd.format(os.environ['SUDO_USER'], sysvals.testdir), shell=True)