From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id EF9F7A055A; Mon, 21 Nov 2022 10:22:12 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id C4BF24021F; Mon, 21 Nov 2022 10:22:11 +0100 (CET) Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by mails.dpdk.org (Postfix) with ESMTP id E191F4014F for ; Mon, 21 Nov 2022 10:22:09 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1669022530; x=1700558530; h=from:to:cc:subject:date:message-id; bh=WYnLEEfwcJfkN5yAuypW5F9sauc4Al/8kaOZ3nvo7Os=; b=T/+qWByf7o6blIGgJnnh6miA6ZORkaX/mCYiziODDsO4iHR4TmffN/CA /XFsUIQ7UNN1YuuUGIepmqbM7QJHpaDNHyaozfoXI1da+f2kEys+E1FD4 cjYyU4XH8Pwntj1432dgWTOViprHYZ+ErAtBVlOLTXW8AOoT7dbOD1fuh +nn+EON66k8pntqYACYc7DOcvBzrZ3WJ/SwPVPFBtaGh3v2pnfsI1VWr0 2owyJQrZDN/zS2VUB/SDi8kpbzCmO61loBr968FkJXMQDSn14Gc2YtQXL PKpdXamIaqP4OvEyOCuUfbNLFrvHpCypALGHo/h+yuiCAtcmb2DKTaIgt w==; X-IronPort-AV: E=McAfee;i="6500,9779,10537"; a="377773936" X-IronPort-AV: E=Sophos;i="5.96,180,1665471600"; d="scan'208";a="377773936" Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 21 Nov 2022 01:22:08 -0800 X-IronPort-AV: E=McAfee;i="6500,9779,10537"; a="746830553" X-IronPort-AV: E=Sophos;i="5.96,180,1665471600"; d="scan'208";a="746830553" Received: from unknown (HELO localhost.localdomain) ([10.239.252.15]) by fmsmga002-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 21 Nov 2022 01:22:07 -0800 From: Dukai Yuan To: dts@dpdk.org Cc: Dukai Yuan Subject: [dts][PATCH V1] tests/ethtool let command execute on tester Date: Mon, 21 Nov 2022 17:17:43 +0800 Message-Id: <20221121091743.7908-1-dukaix.yuan@intel.com> X-Mailer: git-send-email 2.17.1 X-BeenThere: dts@dpdk.org X-Mailman-Version: 2.1.29 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 The original command is executed on the DUT. But actually needs to be executed on the tester. Modify the code to make the command execute on the tester. Signed-off-by: Dukai Yuan --- tests/TestSuite_ethtool_stats.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/TestSuite_ethtool_stats.py b/tests/TestSuite_ethtool_stats.py index abaf05a3..a148b7a9 100644 --- a/tests/TestSuite_ethtool_stats.py +++ b/tests/TestSuite_ethtool_stats.py @@ -56,7 +56,7 @@ class TestEthtoolStats(TestCase): # make sure interface in link up status src_intf, src_mac = self.link_topo cmd = "ifconfig {0} up".format(src_intf) - self.d_a_con(cmd) + self.tester.alt_session.send_expect(cmd, "# ") # send out packet for frame_size in self.frame_sizes: headers_size = sum([HEADER_SIZE[x] for x in ["eth", "ip", "udp"]]) -- 2.17.1