3 from Configuration.PyReleaseValidation.WorkFlow
import WorkFlow
4 from Configuration.PyReleaseValidation.WorkFlowRunner
import WorkFlowRunner
10 def __init__(self, wfIn=None, nThrMax=4, nThreads=1):
25 if t.isAlive() : nActive += 1
36 startDir = os.getcwd()
41 print 'Not running the wf, only creating cfgs and logs' 42 print 'resetting to default number of threads' 45 print 'Running in %s thread(s)' % self.
maxThreads 50 if testList
and float(wf.numId)
not in [
float(x)
for x
in testList]:
continue 53 if os.path.islink(item) :
continue 59 print '\nPreparing to run %s %s' % (wf.numId, item)
61 current =
WorkFlowRunner(wf,noRun,dryRun,cafVeto, opt.dasOptions, opt.jobReports, opt.nThreads, opt.maxSteps)
62 self.threadList.append(current)
75 def count(collect,result):
77 for i
in range(len(collect),len(result)):
79 for i,c
in enumerate(result):
85 count(totpassed,pingle.npass)
86 count(totfailed,pingle.nfail)
88 self.
runDirs[pingle.wf.numId]=pingle.wfDir
89 except Exception
as e:
90 msg =
"ERROR retrieving info from thread: " +
str(e)
93 report+=
' '.
join(
map(str,totpassed))+
' tests passed, '+
' '.
join(
map(str,totfailed))+
' failed\n' 97 runall_report_name=
'runall-report-step123-.log' 98 runall_report=open(runall_report_name,
'w')
99 runall_report.write(report)
100 runall_report.close()
103 anyFail=sum(totfailed)
def __init__(self, wfIn=None, nThrMax=4, nThreads=1)
static std::string join(char **cmd)