From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 46CD1A04A4; Sun, 24 May 2020 17:54:06 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id DAEAD1D154; Sun, 24 May 2020 17:54:05 +0200 (CEST) Received: from wout1-smtp.messagingengine.com (wout1-smtp.messagingengine.com [64.147.123.24]) by dpdk.org (Postfix) with ESMTP id 3BCBB1BFE0 for ; Sun, 24 May 2020 17:54:04 +0200 (CEST) Received: from compute7.internal (compute7.nyi.internal [10.202.2.47]) by mailout.west.internal (Postfix) with ESMTP id 398AA859; Sun, 24 May 2020 11:54:03 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute7.internal (MEProxy); Sun, 24 May 2020 11:54:03 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=monjalon.net; h= from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding:content-type; s=fm1; bh= cgqtTysAToL/+uqpdm/5Hq9mJQA+lAvUeP8ILj0eOLU=; b=JsYm2b31ARF4QlLx gwkUn5LlI/6qch/3i6l0eO5uTUvz01zyWYRkzNggstMcWtLTCoNu5qQcvTI+fLUk YrYW4xl1Hq0iwNDYhGwlnLABuOPnMg0x3UhZSVmGGTe0i9+ubpXz4xRycLJnr7++ N3IebY8ErXODs3xXu2yqkxQExZ9BSVRo7bPCIE7hZ8LKblgDbgSGB9Jpn4VtmZao MxxZkFvLOccfsXxEP7v4NuexsK5ir2HZ5GIfEGqh+sP9I6xadh/zO3J5xgkr8J9j CSx/UihYs5NPxY89oHlgNrz27qJR7sKKKh8Lsq6Z47oo3DnyV1HUqsPpwXwmFj/3 ixPbmA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm2; bh=cgqtTysAToL/+uqpdm/5Hq9mJQA+lAvUeP8ILj0eO LU=; b=dQIVdS06JGz6nNsq8h9pxjlcF5mj/nhnrDBkGNP9EvUcBJx3OO0IZLhiP lUyi5NKcvxQwrAAPAexm3kC85yA+2mSixCkqv+94o9geco7IWW3i8tWhwPT9pWlJ HiTyMaezZWTUgsgjNq0H3b2Lc2RV69ZGbOdT7fy4wNw+vUjts8/pIzQoDmt0/GXF R2ORk4Ur1XV/0zqhyirSSXRdY6TG8jfXyypDxamTPc0QNKWJ6gqehjpKRqIZKMhj Q/x2O4DfD0iQzTH+y1h4CRbXrhuL+QZvaLedvj2Tx8eBWm8MZJR5mCw7zBv7LBWk n8IhLIfv8s0V24vy2OxEISMI4zKkA== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduhedruddukedgleefucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephffvufffkfgjfhgggfgtsehtufertddttddvnecuhfhrohhmpefvhhhomhgr shcuofhonhhjrghlohhnuceothhhohhmrghssehmohhnjhgrlhhonhdrnhgvtheqnecugg ftrfgrthhtvghrnhepudeggfdvfeduffdtfeeglefghfeukefgfffhueejtdetuedtjeeu ieeivdffgeehnecukfhppeejjedrudefgedrvddtfedrudekgeenucevlhhushhtvghruf hiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehthhhomhgrshesmhhonhhjrghl ohhnrdhnvght X-ME-Proxy: Received: from xps.localnet (184.203.134.77.rev.sfr.net [77.134.203.184]) by mail.messagingengine.com (Postfix) with ESMTPA id 395B03280066; Sun, 24 May 2020 11:54:02 -0400 (EDT) From: Thomas Monjalon To: dev@dpdk.org Cc: drc@linux.vnet.ibm.com, Thinh Tran Date: Sun, 24 May 2020 17:54:01 +0200 Message-ID: <2266636.1OKvnQ6APU@thomas> In-Reply-To: <20200302204132.121802-1-thinhtr@linux.vnet.ibm.com> References: <20200302204132.121802-1-thinhtr@linux.vnet.ibm.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Subject: Re: [dpdk-dev] [PATCH] test/autotest: checking for skipped or unsupported tests X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" We are missing a review for this patch, please. 02/03/2020 21:41, Thinh Tran: > - When running the dedault configuration of autotest of the make test > it'd take 900 seconds (15 minutes) for the script TIMEOUT and marks > Failed for a specific device test that is not supported on the > system under test. > - Adding the checking for those tests, print out as "Skipped [Not Run]" > quickly return and continue for next test > > Signed-off-by: Thinh Tran > --- > --- a/app/test/autotest_test_funcs.py > +++ b/app/test/autotest_test_funcs.py > @@ -12,13 +12,16 @@ > def default_autotest(child, test_name): > child.sendline(test_name) > result = child.expect(["Test OK", "Test Failed", > - "Command not found", pexpect.TIMEOUT], timeout=900) > + "Command not found", pexpect.TIMEOUT, > + "Test Skipped"], timeout=900) > if result == 1: > return -1, "Fail" > elif result == 2: > return -1, "Fail [Not found]" > elif result == 3: > return -1, "Fail [Timeout]" > + elif result == 4: > + return 0, "Skipped [Not Run]" > return 0, "Success"