From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by dpdk.org (Postfix) with ESMTP id D2F0F2BF7 for ; Wed, 23 May 2018 13:41:45 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga106.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 23 May 2018 04:41:44 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.49,432,1520924400"; d="scan'208";a="57769964" Received: from irvmail001.ir.intel.com ([163.33.26.43]) by fmsmga001.fm.intel.com with ESMTP; 23 May 2018 04:41:43 -0700 Received: from wgcvswdev001.ir.intel.com (wgcvswdev001.ir.intel.com [10.102.246.100]) by irvmail001.ir.intel.com (8.14.3/8.13.6/MailSET/Hub) with ESMTP id w4NBfgwe006733; Wed, 23 May 2018 12:41:42 +0100 Received: from wgcvswdev001.ir.intel.com (localhost [127.0.0.1]) by wgcvswdev001.ir.intel.com with ESMTP id w4NBfgtp011373; Wed, 23 May 2018 12:41:42 +0100 Received: (from jmparthx@localhost) by wgcvswdev001.ir.intel.com with œ id w4NBfgJP011368; Wed, 23 May 2018 12:41:42 +0100 From: Jananee Parthasarathy To: dev@dpdk.org, anatoly.burakov@intel.com Cc: reshma.pattan@intel.com, Jananee Parthasarathy Date: Wed, 23 May 2018 12:41:36 +0100 Message-Id: <1527075698-11308-3-git-send-email-jananeex.m.parthasarathy@intel.com> X-Mailer: git-send-email 1.7.12.2 In-Reply-To: <1527075698-11308-1-git-send-email-jananeex.m.parthasarathy@intel.com> References: <1526399929-24299-1-git-send-email-jananeex.m.parthasarathy@intel.com> <1527075698-11308-1-git-send-email-jananeex.m.parthasarathy@intel.com> Subject: [dpdk-dev] [PATCH v4 2/4] app/test: update result for skipped test cases 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: , X-List-Received-Date: Wed, 23 May 2018 11:41:46 -0000 Fixed in autotest_test_funcs.py to handle test cases which returns "Skipped" as result. The issue was skipped test cases got timed out, causing delay in autotests execution. Signed-off-by: Jananee Parthasarathy Reviewed-by: Reshma Pattan Reviewed-by: Anatoly Burakov --- test/test/autotest_test_funcs.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) mode change 100644 => 100755 test/test/autotest_test_funcs.py diff --git a/test/test/autotest_test_funcs.py b/test/test/autotest_test_funcs.py old mode 100644 new mode 100755 index 65fe335..219c208 --- a/test/test/autotest_test_funcs.py +++ b/test/test/autotest_test_funcs.py @@ -1,5 +1,5 @@ # SPDX-License-Identifier: BSD-3-Clause -# Copyright(c) 2010-2014 Intel Corporation +# Copyright(c) 2010-2018 Intel Corporation # Test functions @@ -12,12 +12,14 @@ 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", "Skipped", pexpect.TIMEOUT], timeout=900) if result == 1: return -1, "Fail" elif result == 2: return -1, "Fail [Not found]" elif result == 3: + return -1, "Fail [Test returns Skipped]" + elif result == 4: return -1, "Fail [Timeout]" return 0, "Success" -- 1.7.12.2