CMS 3D CMS Logo

Classes | Functions | Variables

addOnTests Namespace Reference

Classes

class  StandardTester
class  testit

Functions

def main

Variables

tuple scriptPath = os.path.dirname( os.path.abspath(sys.argv[0]) )

Function Documentation

def addOnTests::main (   argv)

Definition at line 256 of file addOnTests.py.

00257                :
00258 
00259     import getopt
00260     
00261     try:
00262         opts, args = getopt.getopt(argv, "j:", ["nproc=", 'uploadDir=', 'noRun'])
00263     except getopt.GetoptError, e:
00264         print "unknown option", str(e)
00265         sys.exit(2)
00266         
00267 # check command line parameter
00268 
00269     np=4 # default: four threads
00270 
00271     uploadDir = None
00272     runTests  = True
00273     for opt, arg in opts :
00274         if opt in ('-j', "--nproc" ):
00275             np=int(arg)
00276         if opt in ("--uploadDir", ):
00277             uploadDir = arg
00278         if opt in ('--noRun', ):
00279             runTests = False
00280 
00281     tester = StandardTester(np)
00282     if runTests:
00283         tester.runTests()
00284     if uploadDir:
00285         tester.upload(uploadDir)
00286     


Variable Documentation

tuple addOnTests::scriptPath = os.path.dirname( os.path.abspath(sys.argv[0]) )

Definition at line 10 of file addOnTests.py.