From 043e84f7789485e1aff424109a13b22b704fac4f Mon Sep 17 00:00:00 2001 From: Brendan Jackman Date: Mon, 10 Apr 2017 15:17:45 +0100 Subject: [PATCH] rta: Detect task names when using custom wload RTA.__postrun uses the `tasks` attribute to find the logfiles to pull from the target. So when using a custom rt-app configuration, set up this attribute in a similar way to "profile" workloads. --- libs/wlgen/wlgen/rta.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/libs/wlgen/wlgen/rta.py b/libs/wlgen/wlgen/rta.py index 06a65614f..1ae6e521c 100644 --- a/libs/wlgen/wlgen/rta.py +++ b/libs/wlgen/wlgen/rta.py @@ -306,6 +306,11 @@ class RTA(Workload): ifile.close() ofile.close() + with open(self.json) as f: + conf = json.load(f) + for tid in conf['tasks']: + self.tasks[tid] = {'pid': -1} + return self.json def _confProfile(self): -- GitLab