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 82F2943EDD; Mon, 22 Apr 2024 21:12:08 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id A165A406B8; Mon, 22 Apr 2024 21:11:41 +0200 (CEST) Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.11]) by mails.dpdk.org (Postfix) with ESMTP id 6DA02402C5 for ; Mon, 22 Apr 2024 21:11:34 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1713813095; x=1745349095; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=q165fa5GLV5E3YfeuZ1NKbpXk1tITzNc830t3txKboQ=; b=Q7QyT2SPXGT7cGPKDT7kcQXMBFv7VjsTh47S7KAnvobUki/STQ0c1qw+ xPCQ66qBWVgzYi3DNGO3k/y56YuCnFH/cSdhRcxnO6i7TGcPm/C+GJUDN kK08WHuMs/aDOotoEtwNxPls79r3KGMOOs3EMDRCJ98aSXcWStirarhb+ CUGNYLs/4Ukd5vUm8K5kD9YVnvw7v3ukffBD+UIro5m9j9aM7WO6GjreN tCngorqEGx6tqPbD8Hibq1PqdgaTThuey56NrED4+xVVsDtqQgtcXaa6F HohpWvRxpsNEC06uLQtBlvlNh0dbc4CPXJjAUYDtdmbAefchlQgtp1+oR w==; X-CSE-ConnectionGUID: s0Qr2x20S8u09m/AuhK/Zw== X-CSE-MsgGUID: 6g20cRnUQlWzrU4EY9Fn1w== X-IronPort-AV: E=McAfee;i="6600,9927,11052"; a="19922809" X-IronPort-AV: E=Sophos;i="6.07,221,1708416000"; d="scan'208";a="19922809" Received: from orviesa006.jf.intel.com ([10.64.159.146]) by orvoesa103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 Apr 2024 12:11:34 -0700 X-CSE-ConnectionGUID: vYBpQT7MRh6SVsdu68ixXQ== X-CSE-MsgGUID: XnEsOpCoRHGBfeoTfq5xAg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.07,221,1708416000"; d="scan'208";a="24555964" Received: from unknown (HELO csl-npg-qt0.la.intel.com) ([10.233.181.103]) by orviesa006.jf.intel.com with ESMTP; 22 Apr 2024 12:11:33 -0700 From: Hernan Vargas To: dev@dpdk.org, gakhil@marvell.com, trix@redhat.com, maxime.coquelin@redhat.com Cc: nicolas.chautru@intel.com, qi.z.zhang@intel.com, Hernan Vargas Subject: [PATCH v1 5/9] test/bbdev: improve timeout message format Date: Mon, 22 Apr 2024 12:07:56 -0700 Message-Id: <20240422190800.123027-6-hernan.vargas@intel.com> X-Mailer: git-send-email 2.37.1 In-Reply-To: <20240422190800.123027-1-hernan.vargas@intel.com> References: <20240422190800.123027-1-hernan.vargas@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Print more info and format message for test timeouts. No functional impact. Signed-off-by: Hernan Vargas --- app/test-bbdev/test-bbdev.py | 22 ++++++++++++++++++---- 1 file changed, 18 insertions(+), 4 deletions(-) diff --git a/app/test-bbdev/test-bbdev.py b/app/test-bbdev/test-bbdev.py index 9ddca9e78d3b..d5b679f7867f 100755 --- a/app/test-bbdev/test-bbdev.py +++ b/app/test-bbdev/test-bbdev.py @@ -108,15 +108,29 @@ def kill(process): try: output = subprocess.run(call_params, timeout=args.timeout, universal_newlines=True) except subprocess.TimeoutExpired as e: + print("===========================================================") print("Starting Test Suite : BBdev TimeOut Tests") + print("INFO: One of the tests timed out {}".format(e)) + print("INFO: Unexpected Error") + print("+ ------------------------------------------------------- +") print("== test: timeout") - print("TestCase [ 0] : timeout passed") - print(" + Tests Failed : 1") print("Unexpected Error") + print("TestCase [ 0] : timeout failed") + print(" + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +") + print(" + Tests Failed : 1") + print(" + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +") + exit_status = 1 if output.returncode < 0: + print("===========================================================") print("Starting Test Suite : BBdev Exception Tests") + print("INFO: One of the tests returned {}".format(output.returncode)) + print("INFO: Unexpected Error") + print("+ ------------------------------------------------------- +") print("== test: exception") - print("TestCase [ 0] : exception passed") - print(" + Tests Failed : 1") print("Unexpected Error") + print("TestCase [ 0] : exception failed") + print(" + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +") + print(" + Tests Failed : 1") + print(" + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +") + exit_status = 1 sys.exit(exit_status) -- 2.37.1