From patchwork Wed Nov 14 05:14: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: 997468 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 42vt3330Jqz9s3C for ; Wed, 14 Nov 2018 16:14:39 +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="EuzTcstu"; 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 42vt330zslzF3RY for ; Wed, 14 Nov 2018 16:14:39 +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="EuzTcstu"; dkim-atps=neutral X-Original-To: pdbg@lists.ozlabs.org Delivered-To: pdbg@lists.ozlabs.org Received: from ozlabs.org (bilbo.ozlabs.org [IPv6:2401:3900:2:1::2]) (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 42vt2g3zY4zF3Qc for ; Wed, 14 Nov 2018 16:14:19 +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="EuzTcstu"; 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 42vt2g1qT9z9s9G; Wed, 14 Nov 2018 16:14:19 +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=1542172459; bh=IUev4CdF80+eMjtzaQ6dOhQx2dAmn6ZT/8j0On1CEqA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=EuzTcstuiJ3tZWFHEfO3vz0PUg2pj/FBK6ZpVr0Wsj4eVE3qzXFdem7CBgTkImy5e olV/nAnAP8n2pPDYWNOIIWVCN5rG+Utu0vdDVSM171qrVjtuZw4TyEB40ExtQ2qOGn tg3b5e2SawUUUa3SjCWE4CWyCFV3SR/tV7mQ3JMU8/JhPMGmvLJ3u9HKGlgRIHJZ6v npeZIkg0F1WVRkW7+Ak9IiGfBSoGMZPIe4tQ+SbNQzYskQ+GWuJJYZd69omAOG6i/m jFUlrdGOSOVQwPEaySxKLe9P6q0LfkdyoHF1XOk6GZvp3+D7fkKqa38sZpMKu2VeVW +LAFGv6/KUfqQ== From: Amitay Isaacs To: pdbg@lists.ozlabs.org Date: Wed, 14 Nov 2018 16:14:09 +1100 Message-Id: <20181114051411.136488-4-amitay@ozlabs.org> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20181114051411.136488-1-amitay@ozlabs.org> References: <20181114051411.136488-1-amitay@ozlabs.org> MIME-Version: 1.0 Subject: [Pdbg] [PATCH v2 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 ()