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 53A4C4240B; Wed, 18 Jan 2023 08:50:40 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 2DA1540DFD; Wed, 18 Jan 2023 08:50:40 +0100 (CET) Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by mails.dpdk.org (Postfix) with ESMTP id D1AFB4003F for ; Wed, 18 Jan 2023 08:50:38 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1674028239; x=1705564239; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=7n/Hjye3Nt74GpqySX/BT04ueU1JyYJy5GBdegDTU6A=; b=QIOAAWf7j1zyZdgJKj78//F7Qs1Z8eHmDd6FIH6oCx+h9YOGX5dP+IBJ A/dz/bSyQS1tGx/oR0rIEKJ7iuEUQhhK0/YSida04PO/Tg27nsDBrwnJt AUtyuTjjUPpf8TzXP0P/SYnvgSqfKh3FmNcGdwEnERrOPJZnvyXg937G9 eyJ0mtzozJfOH5W2P7gTrQLH0CA6+Wy4tZgAgEbKIyJjzqqTfdhFuDDC3 X7l1fxETYJiCdqVIXM6ZZpBpd/KJWCBTZvJnVQqF8+rM5FWVyO+UxVKGY bK/Zsf5RPDk8lmjP3P0sIjEvbatAbHFFTrYbFP+4OFisJ8d/nFur7w9Yj A==; X-IronPort-AV: E=McAfee;i="6500,9779,10593"; a="324974817" X-IronPort-AV: E=Sophos;i="5.97,224,1669104000"; d="scan'208";a="324974817" Received: from orsmga004.jf.intel.com ([10.7.209.38]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 17 Jan 2023 23:50:37 -0800 X-IronPort-AV: E=McAfee;i="6500,9779,10593"; a="783574120" X-IronPort-AV: E=Sophos;i="5.97,224,1669104000"; d="scan'208";a="783574120" Received: from unknown (HELO localhost.localdomain) ([10.239.252.20]) by orsmga004-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 17 Jan 2023 23:50:35 -0800 From: Song Jiale To: dts@dpdk.org Cc: Song Jiale Subject: [dts] [PATCH V1] tests/queue_start_stop: optimize script Date: Wed, 18 Jan 2023 15:48:14 +0000 Message-Id: <20230118154814.2109168-1-songx.jiale@intel.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 there is "#" in the echo after the "patch -p0" command of Linux is executed. this "#" is not the expected value, which will affect the subsequent tests. Signed-off-by: Song Jiale --- tests/TestSuite_queue_start_stop.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/TestSuite_queue_start_stop.py b/tests/TestSuite_queue_start_stop.py index b6f4ba96..80baf8d6 100644 --- a/tests/TestSuite_queue_start_stop.py +++ b/tests/TestSuite_queue_start_stop.py @@ -93,9 +93,9 @@ class TestQueueStartStop(TestCase): """ try: if on: - self.dut.send_expect("patch -p0 < %s" % patch_dir, "#") + self.dut.send_expect("patch -p0 < %s" % patch_dir, "[~|~\]]# ") else: - self.dut.send_expect("patch -p0 -R < %s" % patch_dir, "#") + self.dut.send_expect("patch -p0 -R < %s" % patch_dir, "[~|~\]]# ") except Exception as e: raise ValueError("patch_hotfix_dpdk failure: %s" % e) -- 2.25.1