From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by dpdk.org (Postfix) with ESMTP id 5E9315A6F for ; Thu, 9 Jul 2015 08:56:36 +0200 (CEST) Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga101.fm.intel.com with ESMTP; 08 Jul 2015 23:56:35 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.15,437,1432623600"; d="scan'208";a="521224606" Received: from shvmail01.sh.intel.com ([10.239.29.42]) by FMSMGA003.fm.intel.com with ESMTP; 08 Jul 2015 23:56:35 -0700 Received: from shecgisg003.sh.intel.com (shecgisg003.sh.intel.com [10.239.29.90]) by shvmail01.sh.intel.com with ESMTP id t696uWYK013476; Thu, 9 Jul 2015 14:56:32 +0800 Received: from shecgisg003.sh.intel.com (localhost [127.0.0.1]) by shecgisg003.sh.intel.com (8.13.6/8.13.6/SuSE Linux 0.8) with ESMTP id t696uUZj032038; Thu, 9 Jul 2015 14:56:32 +0800 Received: (from yliu84x@localhost) by shecgisg003.sh.intel.com (8.13.6/8.13.6/Submit) id t696uUS4032034; Thu, 9 Jul 2015 14:56:30 +0800 From: Yong Liu To: dts@dpdk.org Date: Thu, 9 Jul 2015 14:56:29 +0800 Message-Id: <1436424989-32002-1-git-send-email-yong.liu@intel.com> X-Mailer: git-send-email 1.7.4.1 Subject: [dts] [PATCH] Add hook function before IXIA stop transmission X-BeenThere: dts@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: test suite reviews and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 09 Jul 2015 06:56:36 -0000 From: Marvin Liu 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 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