Commit cfda77c9 authored by Nicolas Wavrant's avatar Nicolas Wavrant

runner: remove dead code

parent 42d8b1a8
...@@ -338,14 +338,6 @@ def isSoftwareRunning(config): ...@@ -338,14 +338,6 @@ def isSoftwareRunning(config):
return sup_process.isRunning(config, 'slapgrid-sr') return sup_process.isRunning(config, 'slapgrid-sr')
def slapgridResultToFile(config, step, returncode, datetime):
filename = step + "_info.json"
file = os.path.join(config['runner_workdir'], filename)
result = {'last_build':datetime, 'success':returncode}
with open(file, "w") as f:
json.dump(result, f)
def getSlapgridResult(config, step): def getSlapgridResult(config, step):
filename = step + "_info.json" filename = step + "_info.json"
file = os.path.join(config['runner_workdir'], filename) file = os.path.join(config['runner_workdir'], filename)
...@@ -356,11 +348,6 @@ def getSlapgridResult(config, step): ...@@ -356,11 +348,6 @@ def getSlapgridResult(config, step):
return result return result
def waitProcess(config, process, step):
process.wait()
date = datetime.datetime.now().strftime("%Y-%m-%d %H:%M:%S")
slapgridResultToFile(config, step, process.returncode, date)
def runSlapgridWithLock(config, step, process_name, lock=False): def runSlapgridWithLock(config, step, process_name, lock=False):
""" """
* process_name is the name of the process given to supervisord, which will * process_name is the name of the process given to supervisord, which will
......
Markdown is supported
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