From 449f3cf48b9b28400c22e53c8b18be9fe68a23c7 Mon Sep 17 00:00:00 2001 From: Elieva Pignat Date: Fri, 2 Mar 2018 09:18:27 +0000 Subject: [PATCH] rta.py: fix phase cpus assignment Fix: The cpus of the phase of a task was never assigned in the case where the cpu was given as an int and has the value 0. Signed-off-by: Elieva Pignat --- libs/wlgen/wlgen/rta.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/wlgen/wlgen/rta.py b/libs/wlgen/wlgen/rta.py index 96034cac1..0599abee5 100644 --- a/libs/wlgen/wlgen/rta.py +++ b/libs/wlgen/wlgen/rta.py @@ -426,7 +426,7 @@ class RTA(Workload): self.rta_profile['tasks'][tid]['phases']\ ['p'+str(pid).zfill(6)] = task_phase - if phase.cpus: + if phase.cpus is not None: if isinstance(phase.cpus, str): task_phase['cpus'] = ranges_to_list(phase.cpus) elif isinstance(phase.cpus, list): -- GitLab