From patchwork Wed Mar 15 01:56:53 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ke Xu X-Patchwork-Id: 125128 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 B8D1441E96; Wed, 15 Mar 2023 02:59:30 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id B2ECD40EE4; Wed, 15 Mar 2023 02:59:30 +0100 (CET) Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by mails.dpdk.org (Postfix) with ESMTP id B5517400EF for ; Wed, 15 Mar 2023 02:59:29 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1678845569; x=1710381569; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=MYXfhFWIUxAIb3HK+/VOlgkeyLXoa+LEJO1k4MZZ8IQ=; b=OvAN1J7B5ICu+KSl8iZtGGi1vKzykmHMc2lgnj15MgyFkWlJyVxhD54d yQArLwUqCprSs3o7RZFTOpaaxPtC6+7IjL4PDOSP5yDt4OD6DC0T/L+N+ MNSciSox5wxJ6F7vCAUY8lItXvvb/x87ZMPB6ENpqF8jAaAekm0B8N7XU LHvaYVIJfwtxaCv8qM/245dEUwT8rDTbX+NZLiwYzH7sxfegfaseOVvWe rrYHKPAqiXIZ3lX5FNiN3wFnRhmN43zuoPcdrvTon0FS5+Oh6B3fPv4np Aiq7sOMQP/vbrD/xV8AP5ZzdE7hVfK240T9GT540A5UoiXFRwvwv0cFML w==; X-IronPort-AV: E=McAfee;i="6500,9779,10649"; a="317244185" X-IronPort-AV: E=Sophos;i="5.98,261,1673942400"; d="scan'208";a="317244185" Received: from orsmga007.jf.intel.com ([10.7.209.58]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 14 Mar 2023 18:59:28 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10649"; a="672561438" X-IronPort-AV: E=Sophos;i="5.98,261,1673942400"; d="scan'208";a="672561438" Received: from dpdk-xuke-lab.sh.intel.com ([10.67.119.8]) by orsmga007.jf.intel.com with ESMTP; 14 Mar 2023 18:59:27 -0700 From: Ke Xu To: dts@dpdk.org Cc: lijuan.tu@intel.com, ke1.xu@intel.com Subject: [DTS][PATCH V2 0/2] fix result output overwriting when using multiple lines in execution configuration for one suite. Date: Wed, 15 Mar 2023 09:56:53 +0800 Message-Id: <20230315015655.768885-1-ke1.xu@intel.com> X-Mailer: git-send-email 2.25.1 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 In execution config, multi-run suites and cases are grammarly allowed. When we call for a suite multiple times, the new result will overwrite the old result totally. Here we introduces two fixes. 1. We fix framework/test_result.Result.__set_test_case method for the non-checking appending. 2. We fix framework/dts.dts_parse_config method for de-duplicating suites and cases. Ke Xu (2): framework/test_result: fix unsafe __set_test_case framework/dts: fix result setting by overwriting old result with new result framework/dts.py | 25 ++++++++++++++++++++++++- framework/test_result.py | 5 +++-- 2 files changed, 27 insertions(+), 3 deletions(-)