Skip to content
Snippets Groups Projects
Commit 15a23bf2 authored by Sofia Qirjazi's avatar Sofia Qirjazi
Browse files

lbp-periodic-to-run script uploads test configuration

parent a1adef0c
No related branches found
No related tags found
No related merge requests found
...@@ -61,9 +61,6 @@ else ...@@ -61,9 +61,6 @@ else
. /afs/cern.ch/lhcb/software/releases/LBSCRIPTS/dev/InstallArea/scripts/LbLogin.sh --no-cache . /afs/cern.ch/lhcb/software/releases/LBSCRIPTS/dev/InstallArea/scripts/LbLogin.sh --no-cache
fi fi
# FIXME: Get the latest getpack (while waiting for the release)
export PYTHONPATH=/afs/cern.ch/work/m/marcocle/workspace/LbScripts/LbRelease/python:$PYTHONPATH
# FIXME: with gcc49 we do not get the right Python with LbLogin # FIXME: with gcc49 we do not get the right Python with LbLogin
if (echo $CMTCONFIG | grep -q gcc49) ; then if (echo $CMTCONFIG | grep -q gcc49) ; then
export PATH=/afs/cern.ch/sw/lcg/releases/LCG_68/Python/2.7.6/x86_64-slc6-gcc48-opt/bin:$PATH export PATH=/afs/cern.ch/sw/lcg/releases/LCG_68/Python/2.7.6/x86_64-slc6-gcc48-opt/bin:$PATH
......
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
PERIOD=${1:-3600} PERIOD=${1:-3600}
# hack because of a bug with non-writable home (this script is run by tomcat) # hack because of a bug with non-writable home (this script is run by tomcat)
export HOME=$PWD #export HOME=$PWD
# Set common environment # Set common environment
. $(dirname $0)/common.sh . $(dirname $0)/common.sh
......
...@@ -26,7 +26,6 @@ from LbPeriodicTools.LbPeriodicTestCreator import PeriodicTestCreator ...@@ -26,7 +26,6 @@ from LbPeriodicTools.LbPeriodicTestCreator import PeriodicTestCreator
__log__ = logging.getLogger(__name__) __log__ = logging.getLogger(__name__)
def getFilename(test): def getFilename(test):
print(test)
filename = test['slot'] + "." + \ filename = test['slot'] + "." + \
str(test['build_id']) + "." + \ str(test['build_id']) + "." + \
test['project'] + "." + \ test['project'] + "." + \
...@@ -91,7 +90,7 @@ class PeriodicTestExporter(object): ...@@ -91,7 +90,7 @@ class PeriodicTestExporter(object):
def getTests(self, predicate=None): def getTests(self, predicate=None):
''' '''
Parse the file specified and save the ElementTree return only the test as separated by platform
''' '''
return self._all_tests return self._all_tests
...@@ -129,7 +128,8 @@ class PeriodicTestExporter(object): ...@@ -129,7 +128,8 @@ class PeriodicTestExporter(object):
''' '''
Export the files to the database as requested Export the files to the database as requested
''' '''
dash = Dashboard(db_info=database) dash = Dashboard(flavour=database)
for test in self._all_tests: for test in self._all_tests:
dash.publish(test,getFilename(test)) name = getFilename(test)
dash.publish(test, name)
...@@ -70,8 +70,8 @@ class Script(LbUtils.Script.PlainScript): ...@@ -70,8 +70,8 @@ class Script(LbUtils.Script.PlainScript):
testdate = datetime.datetime.strptime(opts.date, '%Y-%m-%d %H:%M') testdate = datetime.datetime.strptime(opts.date, '%Y-%m-%d %H:%M')
#just for testing #just for testing
#testdate = testdate.replace(hour=11,minute=31)
testdateend = testdate + datetime.timedelta(seconds=int(opts.interval)) testdateend = testdate + datetime.timedelta(seconds=int(opts.interval))
self.log.warning("Checking for tests from %s for the period %s/%s" self.log.warning("Checking for tests from %s for the period %s/%s"
......
...@@ -115,7 +115,7 @@ class Script(LbUtils.Script.PlainScript): ...@@ -115,7 +115,7 @@ class Script(LbUtils.Script.PlainScript):
if opts.flavour: if opts.flavour:
database = opts.flavour database = opts.flavour
if opts.endtime != None and opts.status!=None: if opts.endtime != None and opts.status!=None:
testrunning.updateTimeVar(opts.endtime,database) testrunning.updateTimeVar(opts.endtime,database)
testrunning.updateStatus(opts.status,database) testrunning.updateStatus(opts.status,database)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment