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 201F9423C1; Fri, 13 Jan 2023 10:39:00 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 1E08842DA0; Fri, 13 Jan 2023 10:39:00 +0100 (CET) Received: from mga06.intel.com (mga06b.intel.com [134.134.136.31]) by mails.dpdk.org (Postfix) with ESMTP id 83C7C410EF for ; Fri, 13 Jan 2023 10:38:58 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1673602738; x=1705138738; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=VGNczleJwE4e2pW+CQa+6oItvdLGTlCzfEZ5rEymVcM=; b=j5W/1h9JKdPSG/hhP3kGCIk2Bb8Zs0AR/h0vwVE3rS5Mc9APrJedGv2W wlMlSka/35W/VFKThC1aJa2j+kQqMUCkgn82jeHkrfZNOk6Kfe+6+ra93 v0QlVyfu1tUxr6SfUIvtQnqcRV+3S8drSkJs1pjtURtb+8xYmQlYPqnBu 412PrJ2LwFCPRfqoA1ybb91ar5REgmtXPKVLXXLJUEmiZXVjr6KHc8dxO erBztrGarq6Lg6kl646kMH7Frv5cxaf4M0KqJsG2BaAQfakPkL2Yd2GN+ 0Aeysq01kuWX6kG2F4YQLM4x/Ac1rIYK15wKuBMpTH0i8n05onwv+dWsb A==; X-IronPort-AV: E=McAfee;i="6500,9779,10588"; a="386302490" X-IronPort-AV: E=Sophos;i="5.97,213,1669104000"; d="scan'208";a="386302490" Received: from orsmga005.jf.intel.com ([10.7.209.41]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 Jan 2023 01:38:58 -0800 X-IronPort-AV: E=McAfee;i="6500,9779,10588"; a="832021417" X-IronPort-AV: E=Sophos;i="5.97,213,1669104000"; d="scan'208";a="832021417" Received: from unknown (HELO localhost.localdomain) ([10.239.252.196]) by orsmga005-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 Jan 2023 01:38:56 -0800 From: Yu Jiang To: lijuan.tu@intel.com, dts@dpdk.org Cc: Yu Jiang Subject: [dts][PATCH V1] tests/pf_smoke: modify script when TG with Trex and SUT are the same server Date: Fri, 13 Jan 2023 17:38:51 +0800 Message-Id: <20230113093854.634776-2-yux.jiang@intel.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230113093854.634776-1-yux.jiang@intel.com> References: <20230113093854.634776-1-yux.jiang@intel.com> 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 "TREX" directory also under /var/run/dpdk, When TG with Trex and SUT are the same server, Signed-off-by: Yu Jiang --- tests/TestSuite_pf_smoke.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/TestSuite_pf_smoke.py b/tests/TestSuite_pf_smoke.py index 909c7e1b..19cac513 100644 --- a/tests/TestSuite_pf_smoke.py +++ b/tests/TestSuite_pf_smoke.py @@ -68,7 +68,7 @@ class TestPfSmoke(TestCase): out = self.check_session.send_expect( "ls -l /var/run/dpdk |awk '/^d/ {print $NF}'", "# ", 1 ) - if out == "" or "No such file or directory" in out: + if out == "" or out == 'TREX' or "No such file or directory" in out: self.pf_launch_dpdk_app() def pf_launch_dpdk_app(self): -- 2.25.1