From patchwork Tue Jan 23 23:38:35 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christopher Li X-Patchwork-Id: 10181149 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 22726601D5 for ; Tue, 23 Jan 2018 23:38:38 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 06367285E4 for ; Tue, 23 Jan 2018 23:38:38 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id EBEB428814; Tue, 23 Jan 2018 23:38: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.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID 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 7F0BC285E4 for ; Tue, 23 Jan 2018 23:38:37 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752058AbeAWXih (ORCPT ); Tue, 23 Jan 2018 18:38:37 -0500 Received: from mail-qt0-f177.google.com ([209.85.216.177]:42274 "EHLO mail-qt0-f177.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752028AbeAWXig (ORCPT ); Tue, 23 Jan 2018 18:38:36 -0500 Received: by mail-qt0-f177.google.com with SMTP id c2so5967040qtn.9 for ; Tue, 23 Jan 2018 15:38:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=BWcHjLoCUP1ZF0tZsiqXbdl6VnfstmVygjXk47JzpSw=; b=uAdLTRajllyeBd5H2vRgCH2EgLVNxjNjJBcqAQ+wwiYqb4aSEdM2FSsXywLlcUaFqV oLogZUib6YHLH1k5g+R0XeCj9S/gxTy5WH+gOkZ2fHLzznNVrRBcOd5XrEgmm7rZDS/P 7rttsa8nyD2qt4AodDlcNmxITELJFeeQpu4Og6FQtC1kT7WGVraSgQj9fBYSythRYqyV jRP84gLom2nspRhI7TpxqzmSg9KH1+l9FxVLeAkoB4Wk66eb+WOZ4M2zPahOPlTTgFzV uLgSB1WdKaxGBfzZ1EaWaXkBnyGVdkBOMXK9fPRMRQcnN1526u/WpVFzObTYpGNJDdlc AbPQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=BWcHjLoCUP1ZF0tZsiqXbdl6VnfstmVygjXk47JzpSw=; b=EF2DBQsJl3tA+/WZ+7eaCV87+3l6myyy9KC/5awmuj4TgCjbc61cSJytJ7Il74arUw Lz+vk2rzNKjJaenkO666VVbjz0qWw+n58RbiCwmgT48Zuof18CbECkZpKbSZ2o41Gy2J fwnTeOLKn8z2l+oqEl27MLkSZnJwgmIaPPq0HBY1A6qYiMUz/mTl0+CzcVbUwCTB7F9A IslS+feQgH4y9q9aREQWDDNwzE9VFFAm7qIOfXnnTU4lEIXngVHobQlXbWlVknt7bRE1 gehk3KF5bQKY/imr9pVDnr3qF25wCF32eJ9tY87ja7c+rcJotunCAniFS4HhFtRi31XH qTEQ== X-Gm-Message-State: AKwxytdW/neALRw07YUh648DyVp0yfCfjG5RFZWT/Q8vqDdPImAdWj2D lX3TYgN6EWjoQJbVbnYlkX244tRBL031dPh0EQ== X-Google-Smtp-Source: AH8x2277aHQfk569tlTV4ELiEdfjPwz6KL10oQbbz9/7+YWg6FK8qHpaNN+bOQr0RfLe8XKaLAPpV/HpVIoC7Xqmqic= X-Received: by 10.55.69.83 with SMTP id s80mr5716233qka.43.1516750715761; Tue, 23 Jan 2018 15:38:35 -0800 (PST) MIME-Version: 1.0 Received: by 10.140.95.80 with HTTP; Tue, 23 Jan 2018 15:38:35 -0800 (PST) In-Reply-To: <2386463a-5601-78d5-6827-5f03321e4adb@infradead.org> References: <5d19aa93-b421-eb1f-3a4c-92fc9476747a@infradead.org> <2386463a-5601-78d5-6827-5f03321e4adb@infradead.org> From: Christopher Li Date: Tue, 23 Jan 2018 15:38:35 -0800 X-Google-Sender-Auth: Z4WciKQCsERmNxh1qxxfzan3unM Message-ID: Subject: Re: [PATCH] test-suite: handle format with filename.c not existing To: Randy Dunlap Cc: Linux-Sparse Sender: linux-sparse-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-sparse@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP On Tue, Jan 23, 2018 at 10:20 AM, Randy Dunlap wrote: > > I guess that I don't understand the interplay between $V and $quiet and why > have both of them. > It seems that $quiet is just invert of $V, which introduce in the following two commits by Luc. commit: ee43fc784e52e3ee9e1b45da1be5193ea3b64334 Author: Luc Van Oostenryck Date: Mon Feb 13 00:29:04 2017 +0100 testsuite: quieter error reporting for 'known-to-fail' commit: d2a7009a78effb2a8ac867de9240c4a89d181f5d Author: Luc Van Oostenryck Date: Mon Feb 13 00:29:03 2017 +0100 testsuite: allow quieter error reporting > Are you suggesting that $quiet should be initialized by default like this: > (just drop the $must_fail part) > >> quiet=0 >> [ $V -eq 0 ] && quiet=1 yes, I was thinking some thing like this, but I haven't give it a lot of test. >diff --git a/validation/test-suite b/validation/test-suite index cf151a3..5e10942 100755 Chris Acked-by: Randy Dunlap Tested-by: Randy Dunlap --- To unsubscribe from this list: send the line "unsubscribe linux-sparse" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html --- a/validation/test-suite +++ b/validation/test-suite @@ -31,6 +31,7 @@ known_ko_tests=0 # defaults to not verbose [ -z "$V" ] && V=0 +[ $V -eq 0 ] && quiet=1 || quiet=0 ##