5 from Configuration.PyReleaseValidation.WorkFlow
import WorkFlow
6 from Configuration.PyReleaseValidation.WorkFlowRunner
import WorkFlowRunner
26 if t.isAlive() : nActive += 1
37 startDir = os.getcwd()
42 print 'Not running the wf, only creating cfgs and logs'
43 print 'resetting to default number of threads'
46 print 'Running in %s thread(s)' % self.
maxThreads
51 if testList
and float(wf.numId)
not in [float(x)
for x
in testList]:
continue
54 if os.path.islink(item) :
continue
61 print '\nPreparing to run %s %s' % (wf.numId, item)
63 current =
WorkFlowRunner(wf,noRun,dryRun,cafVeto, opt.dasOptions, opt.jobReports)
64 self.threadList.append(current)
67 time.sleep(random.randint(1,5))
77 def count(collect,result):
79 for i
in range(len(collect),len(result)):
81 for i,c
in enumerate(result):
87 count(totpassed,pingle.npass)
88 count(totfailed,pingle.nfail)
90 self.
runDirs[pingle.wf.numId]=pingle.wfDir
92 msg =
"ERROR retrieving info from thread: " + str(e)
95 report+=
' '.
join(
map(str,totpassed))+
' tests passed, '+
' '.
join(
map(str,totfailed))+
' failed\n'
98 runall_report_name=
'runall-report-step123-.log'
99 runall_report=open(runall_report_name,
'w')
100 runall_report.write(report)
101 runall_report.close()
104 anyFail=sum(totfailed)
static std::string join(char **cmd)