[V1,0/2] fix result output overwriting when using multiple lines in execution configuration for one suite.
Message ID | 20230314090107.669640-1-ke1.xu@intel.com (mailing list archive) |
---|---|
Headers |
Return-Path: <dts-bounces@dpdk.org> 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 5894541E90; Tue, 14 Mar 2023 10:03:47 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 5194E410D1; Tue, 14 Mar 2023 10:03:47 +0100 (CET) Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by mails.dpdk.org (Postfix) with ESMTP id 0685A40A7E for <dts@dpdk.org>; Tue, 14 Mar 2023 10:03:45 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1678784626; x=1710320626; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=MYXfhFWIUxAIb3HK+/VOlgkeyLXoa+LEJO1k4MZZ8IQ=; b=SF/Kth4MzSp7Zr0eVpYipgCVFEa5AQxBcAeeTUW28nmUCiqq9n0muasO yQ0EcQ7qo+Gz9DKzeGLIv1v6DlIFeyFLdFXkJ69JFEqSB/f9B2vtCoppN AWqblZJEbzFtN9d9EoY2mhM7j5G89Oxjk3FJXcK43LMp5sMrETfATzZH5 OJBnWfSE1TmE27iFc7KA8e0cC89UpACpj55nO3XQ3yaze3+sfcd+gY7j8 A3vgg3xCZlVagmJkF7+eEscMVewvB2G/jWOzdZQ6GFOC3u1OjIN6XH7Tk 4C6p2MwRehl3ND6aECge5h38wmeuBIONlTzqdLLB85n9O7Bq2o2qBvG9h Q==; X-IronPort-AV: E=McAfee;i="6500,9779,10648"; a="334851264" X-IronPort-AV: E=Sophos;i="5.98,259,1673942400"; d="scan'208";a="334851264" Received: from orsmga003.jf.intel.com ([10.7.209.27]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 14 Mar 2023 02:03:45 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10648"; a="628974404" X-IronPort-AV: E=Sophos;i="5.98,259,1673942400"; d="scan'208";a="628974404" Received: from dpdk-xuke-lab.sh.intel.com ([10.67.119.8]) by orsmga003.jf.intel.com with ESMTP; 14 Mar 2023 02:03:43 -0700 From: Ke Xu <ke1.xu@intel.com> To: dts@dpdk.org Cc: lijuan.tu@intel.com, ke1.xu@intel.com Subject: [DTS][PATCH V1 0/2] fix result output overwriting when using multiple lines in execution configuration for one suite. Date: Tue, 14 Mar 2023 17:01:05 +0800 Message-Id: <20230314090107.669640-1-ke1.xu@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 <dts.dpdk.org> List-Unsubscribe: <https://mails.dpdk.org/options/dts>, <mailto:dts-request@dpdk.org?subject=unsubscribe> List-Archive: <http://mails.dpdk.org/archives/dts/> List-Post: <mailto:dts@dpdk.org> List-Help: <mailto:dts-request@dpdk.org?subject=help> List-Subscribe: <https://mails.dpdk.org/listinfo/dts>, <mailto:dts-request@dpdk.org?subject=subscribe> Errors-To: dts-bounces@dpdk.org |
Series |
fix result output overwriting when using multiple lines in execution configuration for one suite.
|
|
Message
Ke Xu
March 14, 2023, 9:01 a.m. UTC
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(-)