From patchwork Fri Aug 12 16:43:00 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lukas Czerner X-Patchwork-Id: 109874 Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 39645B70B1 for ; Sat, 13 Aug 2011 02:43:23 +1000 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752053Ab1HLQnV (ORCPT ); Fri, 12 Aug 2011 12:43:21 -0400 Received: from mx1.redhat.com ([209.132.183.28]:41911 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751565Ab1HLQnU (ORCPT ); Fri, 12 Aug 2011 12:43:20 -0400 Received: from int-mx09.intmail.prod.int.phx2.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id p7CGhI4s010982 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Fri, 12 Aug 2011 12:43:18 -0400 Received: from dhcp-27-109.brq.redhat.com (dhcp-1-248.brq.redhat.com [10.34.1.248]) by int-mx09.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id p7CGh9pO009448; Fri, 12 Aug 2011 12:43:16 -0400 From: Lukas Czerner To: linux-ext4@vger.kernel.org Cc: tytso@mit.edu, adilger@dilger.ca, Lukas Czerner Subject: [PATCH 5/5 v2] tests: Print out list of failed tests Date: Fri, 12 Aug 2011 18:43:00 +0200 Message-Id: <1313167380-3283-5-git-send-email-lczerner@redhat.com> In-Reply-To: <1313167380-3283-1-git-send-email-lczerner@redhat.com> References: <1313167380-3283-1-git-send-email-lczerner@redhat.com> X-Scanned-By: MIMEDefang 2.68 on 10.5.11.22 Sender: linux-ext4-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org Currently we need to grep, list or just search for failed tests when running 'make check' which is annoying. This commit simply prints out the list of failed test names at the end of the output. Signed-off-by: Lukas Czerner --- v2: This is the actually the first version of the patch tests/test_script.in | 10 +++++++++- 1 files changed, 9 insertions(+), 1 deletions(-) diff --git a/tests/test_script.in b/tests/test_script.in index cec09df..b7ac86e 100644 --- a/tests/test_script.in +++ b/tests/test_script.in @@ -78,4 +78,12 @@ num_failed=`ls *.failed 2>/dev/null | wc -l` echo "$num_ok tests succeeded $num_failed tests failed" -test "$num_failed" -eq 0 || exit 1 +test "$num_failed" -eq 0 && exit 0 + +echo -n "Tests failed: " +for fname in $(ls *.failed); do + echo -n "${fname%%.failed} " +done +echo "" + +exit 1