From patchwork Thu Aug 24 13:15:57 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Sterba X-Patchwork-Id: 9919993 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 93394603FF for ; Thu, 24 Aug 2017 13:17:37 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 81E1A27FBC for ; Thu, 24 Aug 2017 13:17:37 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 76B11288D7; Thu, 24 Aug 2017 13:17:37 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id F169D28BE2 for ; Thu, 24 Aug 2017 13:17:36 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751317AbdHXNRf (ORCPT ); Thu, 24 Aug 2017 09:17:35 -0400 Received: from mx2.suse.de ([195.135.220.15]:42950 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751083AbdHXNRY (ORCPT ); Thu, 24 Aug 2017 09:17:24 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay1.suse.de (charybdis-ext.suse.de [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id CA08AAB22 for ; Thu, 24 Aug 2017 13:17:22 +0000 (UTC) Received: by ds.suse.cz (Postfix, from userid 10065) id 778C1DA8FB; Thu, 24 Aug 2017 15:15:58 +0200 (CEST) From: David Sterba To: fstests@vger.kernel.org Cc: David Sterba Subject: [PATCH] check: print elapsed time even for failed tests Date: Thu, 24 Aug 2017 15:15:57 +0200 Message-Id: <20170824131557.32342-1-dsterba@suse.com> X-Mailer: git-send-email 2.14.0 Sender: fstests-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: fstests@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Sometimes it's useful to see how long the test runs. The time is calculated the same way as in the normal case but the time is not stored in the $tmp.time file. Signed-off-by: David Sterba --- check | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/check b/check index f8db3cd6dfab..f3a1b72e4b2b 100755 --- a/check +++ b/check @@ -755,7 +755,7 @@ for section in $HOST_OPTIONS_SECTIONS; do fi echo "" else - echo " - output mismatch (see $seqres.out.bad)" + echo " `expr $stop - $start`s - output mismatch (see $seqres.out.bad)" mv $tmp.out $seqres.out.bad $diff $seq.out $seqres.out.bad | { if test "$DIFF_LENGTH" -le 0; then