From: Christos Sfakianakis <csfakian(a)redhat.com>
For BaseTestModule instances, ensure appropriate DeviceRef
objects are created from the original kwargs of the instance
to prevent pickle errors.
Signed-off-by: Christos Sfakianakis <csfakian(a)redhat.com>
---
lnst/Controller/MessageDispatcher.py | 1 +
1 file changed, 1 insertion(+)
diff --git a/lnst/Controller/MessageDispatcher.py b/lnst/Controller/MessageDispatcher.py
index ed6aa51..d2dc613 100644
--- a/lnst/Controller/MessageDispatcher.py
+++ b/lnst/Controller/MessageDispatcher.py
@@ -75,6 +75,7 @@ def remote_device_to_deviceref(obj):
elif isinstance(obj, BaseTestModule):
new_test = copy.deepcopy(obj)
new_test.params = remote_device_to_deviceref(new_test.params)
+ new_test._orig_kwargs = remote_device_to_deviceref(new_test._orig_kwargs)
return new_test
else:
return obj
--
2.17.1