From: Radek Pazdera <rpazdera(a)redhat.com>
Call to _cleanup() was added to 'all_dump' and 'config_only' actions, so
the slaves are properly deconfigured when '-c' argument is present.
Signed-off-by: Radek Pazdera <rpazdera(a)redhat.com>
---
NetTest/NetTestController.py | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
diff --git a/NetTest/NetTestController.py b/NetTest/NetTestController.py
index 12a871d..c5cfed0 100644
--- a/NetTest/NetTestController.py
+++ b/NetTest/NetTestController.py
@@ -200,10 +200,14 @@ class NetTestController:
def all_dump_recipe(self):
self._prepare()
pprint(self._recipe)
+ if self._docleanup:
+ self._cleanup()
return True
def config_only_recipe(self):
self._prepare()
+ if self._docleanup:
+ self._cleanup()
return True
def run_recipe(self):
@@ -218,7 +222,8 @@ class NetTestController:
if not res:
break
- self._cleanup()
+ if self._docleanup:
+ self._cleanup()
return res
def eval_expression_recipe(self, expr):
--
1.7.7.6