test suite reviews and discussions
 help / color / mirror / Atom feed
* [dts] [PATCH] Add hook function before IXIA stop transmission
@ 2015-07-09  6:56 Yong Liu
  0 siblings, 0 replies; only message in thread
From: Yong Liu @ 2015-07-09  6:56 UTC (permalink / raw)
  To: dts

From: Marvin Liu <yong.liu@intel.com>

This function will be replaced by suite self-defined function. By this
function, suite can strip system status when running performance case.

Signed-off-by: Marvin Liu <yong.liu@intel.com>

diff --git a/framework/etgen.py b/framework/etgen.py
index fc64b70..1803a1f 100644
--- a/framework/etgen.py
+++ b/framework/etgen.py
@@ -606,6 +606,9 @@ class IxiaPacketGenerator(SSHConnection):
         for port in rxPortlist:
             self.start_pktGroup(self.pci_to_port(self.tester.get_pci(port)))
 
+    def hook_transmissoin_func(self):
+        pass
+
     def get_transmission_results(self, rx_port_list, tx_port_list, delay=5):
         """
         Override this method if you want to change the way of getting results
@@ -628,6 +631,8 @@ class IxiaPacketGenerator(SSHConnection):
         self.logger.info("Rate: %f Mpps" % (rate * 1.0 / 1000000))
         self.logger.info("Mbps rate: %f Mbps" % (bpsRate * 1.0 / 1000000))
 
+        self.hook_transmissoin_func()
+
         self.send_expect("ixStopTransmit portList", "%", 30)
 
         if rate == 0 and oversize > 0:
-- 
1.9.3

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2015-07-09  6:56 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-07-09  6:56 [dts] [PATCH] Add hook function before IXIA stop transmission Yong Liu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).