From patchwork Fri Aug 25 15:28:20 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Jiale, SongX" X-Patchwork-Id: 130737 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 4978F430E2; Fri, 25 Aug 2023 09:19:58 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 44C3A4323A; Fri, 25 Aug 2023 09:19:58 +0200 (CEST) Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.88]) by mails.dpdk.org (Postfix) with ESMTP id A267440695 for ; Fri, 25 Aug 2023 09:19:56 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1692947996; x=1724483996; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=9v4KZC21fJ6PdPKMmjG7rGgm67MYqnxLT6w+36e6/ts=; b=aKaHxPre6Dc0Tjc3/iCb/w3n5jRsVj+1v6yvFtbedyxculG2B4dlMa7O 8mXsAX5hV7H3DAF3j+kir35CKnTdBsxV6uM2EIbU8n6Pw5Woehgtudqte ALPfCWEo15ICSK5Qqj8gVVgidhnwlDdNcbpOX4J4YnxWgHsk1bUqRwQCZ PikdB6xap/Uy2VUoJjps4gDizulYI+e3LNOXOmiDrkGbquQMpyL50pMH8 ltWoBGBWFuWtqZxE5rD2Y4XUv2GeKVcIg6Cff3O9Bsoo3ksFOUzjKkYf4 MGkpZYvh9NMJisXKfITMM7g9fN5d/y80rfbj/ElzBNKVAiLo7Q1L6soMD w==; X-IronPort-AV: E=McAfee;i="6600,9927,10812"; a="405654455" X-IronPort-AV: E=Sophos;i="6.02,195,1688454000"; d="scan'208";a="405654455" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 Aug 2023 00:19:56 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10812"; a="802869639" X-IronPort-AV: E=Sophos;i="6.02,195,1688454000"; d="scan'208";a="802869639" Received: from unknown (HELO localhost.localdomain) ([10.239.252.96]) by fmsmga008-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 Aug 2023 00:19:54 -0700 From: Jiale Song To: dts@dpdk.org Cc: Jiale Song Subject: [dts] [PATCH V2 4/9] framework/dts: add global variables Date: Fri, 25 Aug 2023 15:28:20 +0000 Message-Id: <20230825152825.2831565-5-songx.jiale@intel.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230825152825.2831565-1-songx.jiale@intel.com> References: <20230825152825.2831565-1-songx.jiale@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 add mev related global variables. Signed-off-by: Jiale Song --- framework/dts.py | 26 +++++++++++++++++++++++++- 1 file changed, 25 insertions(+), 1 deletion(-) diff --git a/framework/dts.py b/framework/dts.py index f540256d..704ebae0 100644 --- a/framework/dts.py +++ b/framework/dts.py @@ -145,10 +145,34 @@ def dts_parse_config(config, section): dcf_mode = config.get(section, "dcf_mode").strip().lower() except: dcf_mode = "" + try: + test_mev = config.get(section, "test_mev").strip().lower() + except: + test_mev = "" + try: + test_acc = config.get(section, "test_acc").strip().lower() + except: + test_acc = "" + try: + queue_model = config.get(section, "queue_model").strip().lower() + except: + queue_model = "" + try: + vport = config.get(section, "vport").strip().lower() + except: + vport = "" + try: + rx_vport = config.get(section, "rx_vport").strip().lower() + except: + rx_vport = "0" settings.save_global_setting(settings.DPDK_RXMODE_SETTING, rx_mode) settings.save_global_setting(settings.DPDK_DCFMODE_SETTING, dcf_mode) - + settings.save_global_setting(settings.DPDK_QUEUE_MODEL_SETTING, queue_model) + settings.save_global_setting(settings.DPDK_VPORT_SETTING, vport) + settings.save_global_setting(settings.DPDK_RX_VPORT_SETTING, rx_vport) + settings.save_global_setting(settings.DPDK_TEST_MEV_SETTING, test_mev) + settings.save_global_setting(settings.DPDK_TEST_ACC_SETTING, test_acc) suite_list_dedup = {} ## suite_list_dedup[suite_name] := { True | Set | ... } ## True := All Cases to Run