Lines Matching refs:path
317 (os.path.basename(sys.argv[0]), ' '.join(sys.argv[1:]))
325 if os.path.exists('/dev/rtc'):
328 if os.path.exists(rtc) and os.path.exists(rtc+'/date') and \
329 os.path.exists(rtc+'/time') and os.path.exists(rtc+'/wakealarm'):
382 if not os.path.exists(file) or os.path.getsize(file) < 1:
403 for path in ['/sbin', '/bin', '/usr/sbin', '/usr/bin',
405 cmdfull = os.path.join(path, cmd)
406 if os.path.exists(cmdfull):
464 if os.path.exists('/proc/cpuinfo'):
469 if os.path.exists('/proc/meminfo'):
478 if os.path.exists('/etc/os-release'):
500 if not os.path.isdir(self.testdir):
730 if not os.path.exists(file):
740 def fsetVal(self, val, path):
743 return self.setVal(val, self.tpath+path)
746 if not os.path.exists(file):
755 def fgetVal(self, path):
758 return self.getVal(self.tpath+path)
871 if(os.path.exists(tp+f) == False):
879 if(os.path.exists(tp+f) == False):
904 if os.path.exists(dir) and self.sudouser:
932 dir = os.path.dirname(os.path.realpath(__file__))
933 if os.path.exists(file):
935 elif os.path.exists(dir+'/'+file):
937 elif os.path.exists(dir+'/config/'+file):
973 if not os.path.exists(self.ftracefile):
1010 if not dirname or not os.path.exists(dirname):
1013 if os.path.exists(dirname+'/power/async'):
1023 with open(os.path.join(dirname, file), 'rb') as fp:
1030 with open(os.path.join(dirname, 'idProduct'), 'rb') as fp:
1138 if os.path.exists(f):
1143 elif value and os.path.exists(file):
1159 if not os.path.exists(self.s0ixres) or not os.path.exists(self.mempowerfile):
3276 os.path.basename(sysvals.ftracefile))
3428 os.path.basename(sysvals.ftracefile))
3429 if(os.path.exists(sysvals.ftracefile) == False):
3890 os.path.basename(sysvals.dmesgfile))
3891 if(os.path.exists(sysvals.dmesgfile) == False):
5516 if sv.memmode and os.path.exists(sv.mempowerfile):
5519 if sv.diskmode and os.path.exists(sv.diskpowerfile):
5588 if os.path.islink(file):
5650 if os.path.exists(file):
5682 if(os.path.exists(sysvals.powerfile)):
5686 if(os.path.exists(sysvals.mempowerfile)):
5698 if('disk' in modes and os.path.exists(sysvals.diskpowerfile)):
5709 # mempath: /dev/mem or custom mem path
5736 if(not os.path.exists(mempath)):
5749 if not os.path.exists(ep) or not os.access(ep, os.R_OK):
5842 if(not os.path.exists(sysvals.fpdtpath)):
5850 if(not os.path.exists(sysvals.mempath)):
5987 if(os.path.exists(sysvals.powerfile)):
6036 if not os.path.exists(sysvals.epath+e):
6202 if os.path.exists(sysvals.htmlfile):
6203 if not os.path.isfile(sysvals.htmlfile):
6276 sysvals.htmlfile = os.path.relpath(file, outpath)
6417 file = os.path.join(dirname, filename)
6435 inpath = os.path.abspath(subdir)
6436 outpath = os.path.abspath('.') if local else inpath
6446 data = data_from_html(os.path.join(dirname, filename), outpath, issues)
6462 createHTMLSummarySimple(testruns, os.path.join(outpath, 'summary.html'), title)
6464 createHTMLDeviceSummary(testruns, os.path.join(outpath, 'summary-devices.html'), title)
6466 createHTMLIssuesSummary(testruns, issues, os.path.join(outpath, 'summary-issues.html'), title)
6989 if(os.path.exists(sysvals.dmesgfile) == False):
6998 if(os.path.exists(sysvals.ftracefile) == False):
7008 if(os.path.isdir(val) == False):
7119 if not os.path.isdir(sysvals.outdir):
7131 sysvals.testdir = os.path.join(sysvals.outdir, datetime.now().strftime(fmt))