From f2b96b2cf8da0e2fc3110259fa254dc7fb9203a2 Mon Sep 17 00:00:00 2001 From: Edouard Tisserant Date: Fri, 27 Jan 2017 11:45:22 +0100 Subject: [PATCH] More details about manager side function being executed in multiprocess tests --- test/multipEp.py | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/test/multipEp.py b/test/multipEp.py index af49784..88d2c5d 100644 --- a/test/multipEp.py +++ b/test/multipEp.py @@ -230,7 +230,7 @@ def execute_order(order): res = None if func is not None: - printheader("Executing function " + func.__name__) + printheader("Executing instance function " + func.__name__) printi("args :", args) printi("kwargs :", kwargs) res = func(*args,**kwargs) @@ -407,7 +407,14 @@ def run_instance_action(action): def run_manager_action(action): func, args, kwargs = action[0:] + (None, [], {})[len(action):] - return func(*args, **kwargs) + print("------------------------- Executing manager function -----------------------------") + print("function name :", func.__name__) + print("args :", args) + print("kwargs :", kwargs) + res = func(*args, **kwargs) + print("manager function " + func.__name__ + " returned :", res) + print("-" * 80) + return res def run_scenario(scenario): global pEp