From patchwork Thu Nov 8 04:13:09 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amitay Isaacs X-Patchwork-Id: 994641 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.ozlabs.org (lists.ozlabs.org [203.11.71.2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 42r8zF6gD7z9sBN for ; Thu, 8 Nov 2018 15:13:29 +1100 (AEDT) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=ozlabs.org Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; secure) header.d=ozlabs.org header.i=@ozlabs.org header.b="UXqtja6v"; dkim-atps=neutral Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 42r8zD0cvXzF3L9 for ; Thu, 8 Nov 2018 15:13:28 +1100 (AEDT) Authentication-Results: lists.ozlabs.org; dmarc=none (p=none dis=none) header.from=ozlabs.org Authentication-Results: lists.ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; secure) header.d=ozlabs.org header.i=@ozlabs.org header.b="UXqtja6v"; dkim-atps=neutral X-Original-To: pdbg@lists.ozlabs.org Delivered-To: pdbg@lists.ozlabs.org Received: from ozlabs.org (bilbo.ozlabs.org [203.11.71.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 42r8yz0KXdzF3LG for ; Thu, 8 Nov 2018 15:13:15 +1100 (AEDT) Authentication-Results: lists.ozlabs.org; dmarc=none (p=none dis=none) header.from=ozlabs.org Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; secure) header.d=ozlabs.org header.i=@ozlabs.org header.b="UXqtja6v"; dkim-atps=neutral Received: from authenticated.ozlabs.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPSA id 42r8yy4FxMz9sCs; Thu, 8 Nov 2018 15:13:14 +1100 (AEDT) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=ozlabs.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ozlabs.org; s=201707; t=1541650394; bh=IUev4CdF80+eMjtzaQ6dOhQx2dAmn6ZT/8j0On1CEqA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=UXqtja6v0y7uyqEyhGLtoPmeSgpnN02/G80OmYL0jLl1/SSohdQKFjiD9UpzX2wGx lkfEjgE451Ta+PbmJhhL/2NOGZrJGwVCpeUOWv1R/e4Bu/6t2bcA1U9cXxyR4N+Qew 7ZW5/fCthfAlOVC1hoB8nKTDhrBLZUYMg0U8NSLsjYomVa/B2CM5k5c61xRjYHvcRn dvucmliCCXpgtC8iPaXaZd9x2jfrqwr/JWgwH/5ZfMdtiqIMZrfBuaHA9sFX9a1O0D 8OsrRWvbziUjlChHqcXkSuV0K/Fj469HL+i/EXWmpAZabALzxQIURc97Ddrjdqosky cvBRjQjCWgzXA== From: Amitay Isaacs To: pdbg@lists.ozlabs.org Date: Thu, 8 Nov 2018 15:13:09 +1100 Message-Id: <20181108041311.182694-4-amitay@ozlabs.org> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20181108041311.182694-1-amitay@ozlabs.org> References: <20181108041311.182694-1-amitay@ozlabs.org> MIME-Version: 1.0 Subject: [Pdbg] [PATCH 3/5] tests: Exit on first test failure X-BeenThere: pdbg@lists.ozlabs.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "mailing list for https://github.com/open-power/pdbg development" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Amitay Isaacs Errors-To: pdbg-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org Sender: "Pdbg" Signed-off-by: Amitay Isaacs --- tests/driver.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/driver.sh b/tests/driver.sh index 9e92135..f1f7612 100644 --- a/tests/driver.sh +++ b/tests/driver.sh @@ -90,6 +90,7 @@ test_name=${TEST_NAME:-$0} test_logfile=${TEST_LOG:-} test_trsfile=${TEST_TRS:-} test_color=${TEST_COLOR:-yes} +test_exit_failure=${TEST_EXIT_FAILURE:-yes} red= grn= lgn= blu= mgn= std= if [ $test_color = yes ] ; then @@ -216,6 +217,10 @@ test_output () elif [ $res = "XPASS" -o $res = "FAIL" ] ; then count_failed=$(( count_failed + 1 )) fi + + if [ $count_failed -gt 0 -a "$test_exit_failure" = "yes" ] ; then + exit 99 + fi } test_wrapper_default ()