From 747059f96e403af9408a22ce876109f3e5947db4 Mon Sep 17 00:00:00 2001 From: Michele Di Giorgio Date: Mon, 29 Feb 2016 19:00:03 +0000 Subject: [PATCH] workload: fix background run of a workload Devlib provides a specific method for running a command in background which is not what it was used in LISA. Before, LISA was calling execute() with a background parameter set to True; now it just calls the background() function which does the job. --- libs/wlgen/wlgen/workload.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/libs/wlgen/wlgen/workload.py b/libs/wlgen/wlgen/workload.py index 8df27d20e..7f5b64cb2 100644 --- a/libs/wlgen/wlgen/workload.py +++ b/libs/wlgen/wlgen/workload.py @@ -183,10 +183,8 @@ class Workload(object): # Start task in background if required if background: logging.debug('%14s - WlGen [background]: %s', 'WlGen', self.command) - results = self.target.execute(self.command, - background=True, as_root=as_root) - self.output['executor'] = results - return results + self.target.background(self.command, as_root=as_root) + return logging.info('%14s - Workload execution START:', 'WlGen') logging.info('%14s - %s', 'WlGen', self.command) -- GitLab