From: Ondrej Lichtner <olichtne(a)redhat.com>
This commit adds the set_finished method to the NetTestCommand class. By
default it set's the _finished attribute to True, but takes an optional
parameter if you want to clear it (doesn't have a use right now).
Signed-off-by: Ondrej Lichtner <olichtne(a)redhat.com>
---
lnst/Common/NetTestCommand.py | 3 +++
1 file changed, 3 insertions(+)
diff --git a/lnst/Common/NetTestCommand.py b/lnst/Common/NetTestCommand.py
index 0ce8998..c24110e 100644
--- a/lnst/Common/NetTestCommand.py
+++ b/lnst/Common/NetTestCommand.py
@@ -111,6 +111,9 @@ class NetTestCommand:
def forked(self):
return self._process != None
+ def set_finished(self, value=True):
+ self._finished = value
+
def finished(self):
return self._finished
--
2.5.0