From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 6CF6DA0540; Mon, 20 Jul 2020 11:28:15 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 5A0372BF3; Mon, 20 Jul 2020 11:28:15 +0200 (CEST) Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by dpdk.org (Postfix) with ESMTP id 701F51DBB for ; Mon, 20 Jul 2020 11:28:13 +0200 (CEST) IronPort-SDR: sJP4N3PmYqOkvVRVGeoh1PTMpcKIuvaVLeY1mrBSIgdDSjr8YE4RV0rJulURWawfYmBYrpRX30 9TfeaA5U/SuA== X-IronPort-AV: E=McAfee;i="6000,8403,9687"; a="147833185" X-IronPort-AV: E=Sophos;i="5.75,374,1589266800"; d="scan'208";a="147833185" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 Jul 2020 02:28:12 -0700 IronPort-SDR: 2OON4mQnZCIOwST/XOlZmVIjNeHHngNaysh+CtRaIO1yHbMvtjS9VcIsIwGUPSYIklup9Q+iS9 mw1B2y2Q9KyQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.75,374,1589266800"; d="scan'208";a="301217367" Received: from unknown (HELO localhost.localdomain) ([10.240.183.222]) by orsmga002.jf.intel.com with ESMTP; 20 Jul 2020 02:28:11 -0700 From: lingwei To: dts@dpdk.org Cc: lingwei Date: Mon, 20 Jul 2020 17:23:58 +0000 Message-Id: <20200720172358.49460-1-weix.ling@intel.com> X-Mailer: git-send-email 2.17.1 Subject: [dts] [PATCH V1] tests/TestSuite_distributor: Fix test_perf_distributor case result is 0 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: , Errors-To: dts-bounces@dpdk.org Sender: "dts" Fix test_perf_distributor case result is 0. Signed-off-by: lingwei --- tests/TestSuite_distributor.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/tests/TestSuite_distributor.py b/tests/TestSuite_distributor.py index aaad6c7..9ccc761 100644 --- a/tests/TestSuite_distributor.py +++ b/tests/TestSuite_distributor.py @@ -138,8 +138,6 @@ class TestDistributor(TestCase): self.dut.send_expect(cmd, "doing packet RX", timeout=30) - self.app_output = self.dut.session.get_session_before(timeout=2) - # clear streams before add new streams self.tester.pktgen.clear_streams() # run packet generator @@ -147,6 +145,9 @@ class TestDistributor(TestCase): None, self.tester.pktgen) _, pps = self.tester.pktgen.measure_throughput(stream_ids=streams) + # get aap output after sending packet + self.app_output = self.dut.session.get_session_before(timeout=2) + self.dut.send_expect("^C", "#") pps /= 1000000.0 @@ -240,6 +241,8 @@ class TestDistributor(TestCase): """ # skip the last one, we use the next one output = output[:output.rfind("RX Thread")] + # skip the last two, we use the next one + output = output[:output.rfind("RX Thread")] output = output[output.rfind("RX Thread"):] rec_rate = 0.0 enq_rate = 0.0 -- 2.17.1