[lnst] system_config: Config restore regression fix
Jiří Pírko
jirka at fedoraproject.org
Wed Aug 22 14:28:09 UTC 2012
commit 14095e8e11ff8beaf5fdbef0879d2cae21c92539
Author: Radek Pazdera <rpazdera at redhat.com>
Date: Wed Aug 22 12:39:39 2012 +0200
system_config: Config restore regression fix
This commit fixes a regression in config restoration on
command sequence termination.
The command sequence format has changed recently, which occured
in changing of _run_command_sequence() method. This method is used
in the system config restoration to avoid code duplication, because
it does all the necessary error checking.
Signed-off-by: Radek Pazdera <rpazdera at redhat.com>
NetTest/NetTestController.py | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/NetTest/NetTestController.py b/NetTest/NetTestController.py
index c70e252..b39939e 100644
--- a/NetTest/NetTestController.py
+++ b/NetTest/NetTestController.py
@@ -461,5 +461,6 @@ class NetTestController:
for option, values in system_config.iteritems():
command["options"][option] = [{"value": values["initial_val"]}]
- self._run_command_sequence([command])
+ seq = {"commands": [command], "quit_on_fail": "no"}
+ self._run_command_sequence(seq)
info["system_config"] = {}
More information about the LNST-developers
mailing list