From: Ondrej Lichtner <olichtne(a)redhat.com>
Returns the estimated time required to complete the run method.
Currently the estimate is just the test duration + 5 seconds which is a
"safe" estimated overhead required for everything to start correctly.
Signed-off-by: Ondrej Lichtner <olichtne(a)redhat.com>
---
lnst/Tests/Iperf.py | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/lnst/Tests/Iperf.py b/lnst/Tests/Iperf.py
index d673164..89f05a8 100644
--- a/lnst/Tests/Iperf.py
+++ b/lnst/Tests/Iperf.py
@@ -105,6 +105,10 @@ class IperfClient(IperfBase):
if self.params.udp and self.params.sctp:
raise TestModuleError("Parameters udp and sctp are mutually
exclusive!")
+ def runtime_estimate(self):
+ _duration_overhead = 5
+ return (self.params.duration + _duration_overhead)
+
def _compose_cmd(self):
port = ""
--
2.19.1