aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--conf/00_common.conf3
-rw-r--r--tools/tasks.py7
2 files changed, 5 insertions, 5 deletions
diff --git a/conf/00_common.conf b/conf/00_common.conf
index 4c25b0b8..279c67b4 100644
--- a/conf/00_common.conf
+++ b/conf/00_common.conf
@@ -90,6 +90,9 @@ PATHS = {}
# shell command to use when running commands through Pexpect
SHELL_CMD = ['/bin/bash', '-c']
+# internal list to keep track of PIDs of jobs executed by vsperf
+_EXECUTED_PIDS = []
+
# ############################
# Logging configuration
# ############################
diff --git a/tools/tasks.py b/tools/tasks.py
index 18f4d712..4e03f85e 100644
--- a/tools/tasks.py
+++ b/tools/tasks.py
@@ -117,11 +117,8 @@ def run_task(cmd, logger, msg=None, check_error=False):
def update_pids(pid):
"""update list of running pids, so they can be terminated at the end
"""
- try:
- pids = settings.getValue('_EXECUTED_PIDS')
- pids.append(pid)
- except AttributeError:
- pids = [pid]
+ pids = settings.getValue('_EXECUTED_PIDS')
+ pids.append(pid)
settings.setValue('_EXECUTED_PIDS', pids)
def run_background_task(cmd, logger, msg):