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 C8106A0501; Sat, 2 Apr 2022 10:55:05 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 9E6444067E; Sat, 2 Apr 2022 10:55:05 +0200 (CEST) Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by mails.dpdk.org (Postfix) with ESMTP id AF71840143 for ; Sat, 2 Apr 2022 10:55:03 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1648889703; x=1680425703; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=qWiYMK8Hf1Kq2o5OERhazjKRHvRAm1PvLAECPxCs9pU=; b=kLr0re9IhvpTUb9WcK56QQFVOq7blUCCOb35284rCbyoKMG0ga9SQHZM jK66c2eGlqLwYsSjQYBqrLSBocj7/iN9+/12eh4Fyn0wgqWtukpw/NjkA fTx3qzb1F+UipXstsMDqtQqsLQXQpZltGJQtj8Mv2nHHpAZlT9yGVAc9Z lB0FNebK+yLpRqNccWjHpZqyzp0limIHpNM9R9mjW7Z9OB1BtDdHcAaz8 ai28cZkrO7zeVszx6OY2HtyC13Qcazt9icMHAibsmcLZpRM0oiD/g+sN1 8foQmy+LeW5dhQ830gw2sKI/RIHI0Z2hVDeh1wjzBoiSHYSP+fvZY+ngl A==; X-IronPort-AV: E=McAfee;i="6200,9189,10304"; a="285226432" X-IronPort-AV: E=Sophos;i="5.90,229,1643702400"; d="scan'208";a="285226432" Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 02 Apr 2022 01:55:02 -0700 X-IronPort-AV: E=Sophos;i="5.90,229,1643702400"; d="scan'208";a="640772808" Received: from shwdenpg197.ccr.corp.intel.com ([10.253.109.70]) by fmsmga003-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 02 Apr 2022 01:55:01 -0700 From: Jun Dong To: dts@dpdk.org Cc: lijuan.tu@intel.com, qingx.sun@intel.com, junx.dong@intel.com Subject: [dts] [PATCH V1] framework/dts: Regist generate ASan report action to atexit Date: Sat, 2 Apr 2022 16:54:54 +0800 Message-Id: <20220402085454.743-1-junx.dong@intel.com> X-Mailer: git-send-email 2.33.1.windows.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 Sometime, the framework does not generate ASan reports when exiting abnormally, because the operation of generating reports is at the end of the main flow of the framework, and there are no guarantee measures in case of abnormality. So register the generate operation with the atexit module. Signed-off-by: Jun Dong --- framework/dts.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/framework/dts.py b/framework/dts.py index 1ffb1c23..dbb5a1ed 100644 --- a/framework/dts.py +++ b/framework/dts.py @@ -559,6 +559,8 @@ def run_all( # prepare ASan test ASanTestProcess.test_prepare(asan, output_dir) + # register generate ASan report action + atexit.register(ASanTestProcess.test_process) if not os.path.exists(output_dir): os.mkdir(output_dir) @@ -676,9 +678,6 @@ def run_all( save_all_results() - # process ASan test report - ASanTestProcess.test_process() - def show_speedup_options_messages(read_cache, skip_setup): if read_cache: -- 2.33.1.windows.1