X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FTools%2FVerima%2FpasseJobs.py;fp=src%2FTools%2FVerima%2FpasseJobs.py;h=16af74790e37f747141281c59b7025e4c326c52b;hb=2d16118826a6b7874b3093ed11284cfbb30a5efa;hp=0000000000000000000000000000000000000000;hpb=578963d0d280466665d5440859bb97e3ee8b6b3e;p=modules%2Fsmesh.git diff --git a/src/Tools/Verima/passeJobs.py b/src/Tools/Verima/passeJobs.py new file mode 100755 index 000000000..16af74790 --- /dev/null +++ b/src/Tools/Verima/passeJobs.py @@ -0,0 +1,35 @@ +#!/usr/bin/env python +# -*- coding: utf-8 -*- + +import sys +import os +from PyQt4 import QtGui,QtCore +from Base.dataBase import Base +from Base.versions import Chercheversion + + +if __name__ == "__main__": + from optparse import OptionParser + p=OptionParser() + p.add_option('-a',dest='all',action="store_true", default=False,help='passe l ensemble des Tests') + p.add_option('-s',dest='salomePath',help='chemin du runAppli',default="Appli") + p.add_option('-v',dest='version',help='id de la version') + p.add_option('-d',dest='database',default="myMesh.db",help='nom de la database') + p.add_option('-f',dest='force',default=True,help='force la passage des jobs meme si l execution a deja eu lieu sur cette machine pour cette version de salome') + options, args = p.parse_args() + if len(args) != 0 and options.all== True: + print "Enter -a ou un numero de job" + exit() + if len(args) == 0 and options.all== False: + print "Enter -a ou un numero de job" + exit() + if options.salomePath==None : + print "chemin du runAppli obligatoire" + exit() + if options.version==None : + options.version=Chercheversion(options.salomePath) + maBase=Base(options.database) + maBase.initialise() + maBase.passeJobs(options.all,options.salomePath,options.version,options.force,args) + maBase.close() +