Salome HOME
Merge tag 'V8_3_0a2' into ngr/python3_dev
[modules/smesh.git] / src / Tools / Verima / passeJobs.py
1 #!/usr/bin/env python
2 # -*- coding: utf-8 -*-
3
4 import sys
5 import os
6 from .Base.dataBase import Base
7 from .Base.versions import Chercheversion
8
9
10 if __name__ == "__main__":
11     from optparse import OptionParser
12     p=OptionParser()
13     p.add_option('-a',dest='all',action="store_true", default=False,help='passe l ensemble des Tests')
14     p.add_option('-s',dest='salomePath',help='chemin du runAppli',default="Appli")
15     p.add_option('-v',dest='version',help='id de la version')
16     p.add_option('-d',dest='database',default="myMesh.db",help='nom de la database')
17     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')
18     options, args = p.parse_args()
19     if len(args) == 0  and options.all== False:
20         print("Enter -a ou un numero de job")
21         print(2)
22         exit()
23     if options.salomePath==None :
24         print("chemin du runAppli obligatoire")
25         exit()
26     if options.version==None :
27         options.version=Chercheversion(options.salomePath)
28     maBase=Base(options.database)
29     maBase.initialise()
30     maBase.passeJobs(options.all,options.salomePath,options.version,options.force,args)
31     maBase.close()