From patchwork Sun Jul 16 09:07:48 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jin Ling X-Patchwork-Id: 129548 Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 3C3ED42E8A; Sun, 16 Jul 2023 11:08:17 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 2F2EA42BB1; Sun, 16 Jul 2023 11:08:17 +0200 (CEST) Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by mails.dpdk.org (Postfix) with ESMTP id 0DFA44013F for ; Sun, 16 Jul 2023 11:08:14 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1689498495; x=1721034495; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=bTAGE2q1WxTQfUq33iPyFF+4c01Y2k7x0oIcPQYt/Ek=; b=eRyZxSuln5CGTKZkkyWjCjYt9Q/8mBXi629WDuovtOVjARpZpLMUVulI kVJCT0JNDMt+rklYxMBpnPBPzHiHicp4fxVkEyAJgmppUqWqCskM3PuUC ieWmlPiLsnHlOsYnh94bR1Xin8qAkMhVzIGB+mnrfsBW5wJrutjsmFp1q 5ErlM3SRxTFK1zuqMwACa874cPsGPElvRFBOgQrV5bMCaHKB6AoBtgGei W3IlD97EUBe9xSg1T/HW7oxP3hBppjit5KQo+QXWoQ6vnlriZxWQ4bwDN 3Uw9QaCmnNtp2OqvOyQITvoo5lyvFJ/JS03IrlXFW3GF2FXHHDlv6Uv1i g==; X-IronPort-AV: E=McAfee;i="6600,9927,10772"; a="350610637" X-IronPort-AV: E=Sophos;i="6.01,210,1684825200"; d="scan'208";a="350610637" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 Jul 2023 02:08:14 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10772"; a="788303676" X-IronPort-AV: E=Sophos;i="6.01,210,1684825200"; d="scan'208";a="788303676" Received: from dpdk-lingjin.sh.intel.com ([10.67.114.163]) by fmsmga008.fm.intel.com with ESMTP; 16 Jul 2023 02:08:13 -0700 From: Jin Ling To: dts@dpdk.org Cc: Jin Ling Subject: [DTS][PATCH V1 04/10] framework/crb:modify code when pexpect contains '#', replace '#' with 'mev-acc' Date: Sun, 16 Jul 2023 17:07:48 +0800 Message-Id: <20230716090753.1590148-5-jin.ling@intel.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230716090753.1590148-1-jin.ling@intel.com> References: <20230716090753.1590148-1-jin.ling@intel.com> MIME-Version: 1.0 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 Signed-off-by: Jin Ling --- framework/crb.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/framework/crb.py b/framework/crb.py index 9e3b0a58..0cd95553 100644 --- a/framework/crb.py +++ b/framework/crb.py @@ -103,6 +103,12 @@ class Crb(object): if trim_whitespace: expected = expected.strip() + try: + if "#" in cmds and self.acc_test_session !=None: + expected = "mev-acc" + except: + pass + # sometimes there will be no alt_session like VM dut if alt_session and self.alt_session: return self.alt_session.session.send_expect(cmds, expected, timeout, verify)