--- NetTest/NetTestCommand.py | 6 +++++- 1 files changed, 5 insertions(+), 1 deletions(-)
diff --git a/NetTest/NetTestCommand.py b/NetTest/NetTestCommand.py index aefd173..ca28abf 100644 --- a/NetTest/NetTestCommand.py +++ b/NetTest/NetTestCommand.py @@ -105,7 +105,11 @@ class NetTestCommandExec(NetTestCommandGeneric): exec_cmd(self._command["value"]) self.set_pass() except ExecCmdFail: - self.set_fail("Command failed to execute") + if "bg_id" in self._command: + logging.info("Command probably intentionally killed. Passing.") + self.set_pass() + else: + self.set_fail("Command failed to execute")
class BgProcessException(Exception): """Base class for client errors."""
Tue, Dec 13, 2011 at 03:50:38PM CET, jtluka@redhat.com wrote:
NetTest/NetTestCommand.py | 6 +++++- 1 files changed, 5 insertions(+), 1 deletions(-)
diff --git a/NetTest/NetTestCommand.py b/NetTest/NetTestCommand.py index aefd173..ca28abf 100644 --- a/NetTest/NetTestCommand.py +++ b/NetTest/NetTestCommand.py @@ -105,7 +105,11 @@ class NetTestCommandExec(NetTestCommandGeneric): exec_cmd(self._command["value"]) self.set_pass() except ExecCmdFail:
self.set_fail("Command failed to execute")
if "bg_id" in self._command:
logging.info("Command probably intentionally killed. Passing.")
self.set_pass()
else:
self.set_fail("Command failed to execute")
class BgProcessException(Exception): """Base class for client errors.""" -- 1.7.4.4
LNST-developers mailing list LNST-developers@lists.fedorahosted.org https://fedorahosted.org/mailman/listinfo/lnst-developers
applied
lnst-developers@lists.fedorahosted.org