commit 0771ca01b613d011df7cdc9e29ce2124f529419a Author: Jan Tluka jtluka@redhat.com Date: Tue Dec 13 15:50:38 2011 +0100
Ignore failures produced by 'kill' and 'intr' commands.
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."""
lnst-developers@lists.fedorahosted.org