CMS 3D CMS Logo

Classes | Functions

MatrixInjector Namespace Reference

Classes

class  MatrixInjector

Functions

def performInjectionOptionTest

Function Documentation

def MatrixInjector::performInjectionOptionTest (   opt)

Definition at line 6 of file MatrixInjector.py.

00007                                    :
00008     if opt.show:
00009         print 'Not injecting to wmagent in --show mode. Need to run the worklfows.'
00010         sys.exit(-1)
00011     if opt.wmcontrol=='init':
00012         #init means it'll be in test mode
00013         opt.nThreads=0
00014     if opt.wmcontrol=='test':
00015         #means the wf were created already, and we just dryRun it.
00016         opt.dryRun=True
00017     if opt.wmcontrol=='submit' and opt.nThreads==0:
00018         print 'Not injecting to wmagent in -j 0 mode. Need to run the worklfows.'
00019         sys.exit(-1)
00020     if opt.wmcontrol=='force':
00021         print "This is an expert setting, you'd better know what you're doing"
00022         opt.dryRun=True