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 9AA80A04B1; Fri, 14 Aug 2020 08:04:34 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 80BF51C0C5; Fri, 14 Aug 2020 08:04:34 +0200 (CEST) Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by dpdk.org (Postfix) with ESMTP id 7D3F84C9D for ; Fri, 14 Aug 2020 08:04:32 +0200 (CEST) IronPort-SDR: JoLEuQqHbn001DqY5UZgnbhvAhiSiC93usodKrjpTxLWkqGjeDlI29Neil8Lu76KEMCceMnHGb zADJMfKS4GgQ== X-IronPort-AV: E=McAfee;i="6000,8403,9712"; a="142206097" X-IronPort-AV: E=Sophos;i="5.76,311,1592895600"; d="scan'208";a="142206097" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 Aug 2020 23:04:31 -0700 IronPort-SDR: WGAuof7CazCVWwCM/QsH7OXtg8EwLqYtwtSiK+ibLHC8PMpfgk+61nN1oYX/eYXPjud4epTIyP SRW1XdBQAEfw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.76,311,1592895600"; d="scan'208";a="399388403" Received: from unknown (HELO localhost.localdomain) ([10.240.183.52]) by fmsmga001.fm.intel.com with ESMTP; 13 Aug 2020 23:04:30 -0700 From: Xiao Qimai To: dts@dpdk.org Cc: Xiao Qimai Date: Fri, 14 Aug 2020 05:39:47 +0000 Message-Id: <20200814053947.59681-1-qimaix.xiao@intel.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dts] [PATCH V1]framework/pmd_output: set base dir for session on dut to start testpmd 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" Signed-off-by: Xiao Qimai --- framework/pmd_output.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/framework/pmd_output.py b/framework/pmd_output.py index bba7676..08c0b5c 100644 --- a/framework/pmd_output.py +++ b/framework/pmd_output.py @@ -180,6 +180,8 @@ class PmdOutput(): app_name = self.dut.apps_name['test-pmd'] command = app_name + " %s -- -i %s" % (all_eal_param, param) + if self.session != self.dut: + self.session.send_expect("cd %s" % self.dut.base_dir, "# ") out = self.session.send_expect(command, "testpmd> ", 120) self.command = command # wait 10s to ensure links getting up before test start. -- 2.25.1