Commit 92e379ba authored by cpomies's avatar cpomies
Browse files

Minor change

Added log info
Deleted unused function and import
parent 3c111262
......@@ -8,7 +8,6 @@
# granted to it by virtue of its status as an Intergovernmental Organization #
# or submit itself to any jurisdiction. #
###############################################################################
from platform import platform
'''
Module containing the classes and functions used to check if a slot have
preconditions and write files with parameters for next jobs in Jenkins
......@@ -20,14 +19,6 @@ import os
from LbNightlyTools.Configuration import load
from LbNightlyTools.Utils import JobParams
def parseConfigFile(path):
'''
Extract required information from the configuration file.
'''
data = load(path)
return data.get(u'preconditions', [])
import LbUtils.Script
class Script(LbUtils.Script.PlainScript):
'''
......@@ -54,8 +45,10 @@ class Script(LbUtils.Script.PlainScript):
data = load(self.args[0])
preconds = data.get(u'preconditions', [])
if preconds:
self.log.info('Find precondition for %s', os.environ['slot'])
output_file = 'slot-precondition-{0}-{1}.txt'
else:
self.log.info('No precondition for %s', os.environ['slot'])
output_file = 'slot-build-{0}-{1}.txt'
if os.environ.has_key('platforms') and os.environ['platforms'] != '':
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment