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 2FC0D454E2; Mon, 24 Jun 2024 17:07:45 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id F155740EE7; Mon, 24 Jun 2024 17:07:16 +0200 (CEST) Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.19]) by mails.dpdk.org (Postfix) with ESMTP id 9710A40653 for ; Mon, 24 Jun 2024 17:07:10 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1719241631; x=1750777631; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=MfNZcjzCf2XEPJJi83/sPPhvJCJIzdivPFOk7VgWOGI=; b=a4q8x/7iEnFtCtzGwlNpkoPHg5nrnyyTAILLq6+wV8C1nZIaHKVcudQ3 QSW0afzJfcKPCeyDJ+/krmdQhj9sbG+bELJkyY4/ErPr5Y/R1Cq0aC5uB F6P4hwSyAcag65xbbsJ4mxbfW2IiGFCYCNWmpCWaYVd2gfHVBGBVMTGo8 fLOFDodNIQ+aVmL2+SKdW/Vofys6rItySuPbqL9Rb7A5QRk6HMrSMAns/ 9xbgee5vf8Xgw8hH/Nm8txt2eJ0gUg3Q5j3ZcXAuFeASFW4fpwaYLCKuq AzuiGitozmpExuoO916ByLwsnZfDC3WRwwkB+yYTNoTN7wMuOLG2GRgZ8 g==; X-CSE-ConnectionGUID: c6nFn+MGRsiCpwKXMIElNg== X-CSE-MsgGUID: ih0A+wkkRq2SxLekL73LDA== X-IronPort-AV: E=McAfee;i="6700,10204,11113"; a="16042024" X-IronPort-AV: E=Sophos;i="6.08,262,1712646000"; d="scan'208";a="16042024" Received: from orviesa008.jf.intel.com ([10.64.159.148]) by orvoesa111.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Jun 2024 08:07:11 -0700 X-CSE-ConnectionGUID: aq1yTAyIQBel0YuUUclDDg== X-CSE-MsgGUID: MLxCNpZ9SqqdMWrJtZ3dnw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.08,262,1712646000"; d="scan'208";a="44025863" Received: from unknown (HELO csl-npg-qt0.la.intel.com) ([10.233.181.103]) by orviesa008.jf.intel.com with ESMTP; 24 Jun 2024 08:07:10 -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 v2 5/9] test/bbdev: improve timeout message format Date: Mon, 24 Jun 2024 08:02:33 -0700 Message-Id: <20240624150237.47169-6-hernan.vargas@intel.com> X-Mailer: git-send-email 2.37.1 In-Reply-To: <20240624150237.47169-1-hernan.vargas@intel.com> References: <20240624150237.47169-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 Reviewed-by: Maxime Coquelin --- 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