From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 2845B431FD0 for ; Sun, 3 Jul 2011 20:42:16 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -0.699 X-Spam-Level: X-Spam-Status: No, score=-0.699 tagged_above=-999 required=5 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled Received: from olra.theworths.org ([127.0.0.1]) by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id WZsA8IDmIQsm for ; Sun, 3 Jul 2011 20:42:15 -0700 (PDT) Received: from mail-qy0-f181.google.com (mail-qy0-f181.google.com [209.85.216.181]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) by olra.theworths.org (Postfix) with ESMTPS id ECE64431FB6 for ; Sun, 3 Jul 2011 20:42:14 -0700 (PDT) Received: by qyk9 with SMTP id 9so3224310qyk.5 for ; Sun, 03 Jul 2011 20:42:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=W6ge2dTNoDe1XlDUS23AIq8QGQnEUaX2+hdKL8Zl4iQ=; b=UhhtF7WPli4Bn9jRt1byNTSh5auQYpcyUAS25Y4rF6vvp21EAzTXRk9i/L4xoQ5de0 f964nXGd8k+xrOLVC3XbtuzcSvsW1zZhLtzsDhaZOKJTprX0CjbzZulT4ovffidEcgme Udxcc8YRmynYahb2Nk+5xHCm3HM8vLwoA55S8= MIME-Version: 1.0 Received: by 10.224.188.146 with SMTP id da18mr4523195qab.124.1309750934019; Sun, 03 Jul 2011 20:42:14 -0700 (PDT) Sender: amdragon@gmail.com Received: by 10.229.229.211 with HTTP; Sun, 3 Jul 2011 20:42:13 -0700 (PDT) In-Reply-To: <1309744743-8556-2-git-send-email-dmitry.kurochkin@gmail.com> References: <1309744743-8556-1-git-send-email-dmitry.kurochkin@gmail.com> <1309744743-8556-2-git-send-email-dmitry.kurochkin@gmail.com> Date: Sun, 3 Jul 2011 23:42:13 -0400 X-Google-Sender-Auth: 7_W2JV2V_d4bwMTBKzqUavpscWQ Message-ID: Subject: Re: [PATCH 2/3] test: improve known broken tests support From: Austin Clements To: Dmitry Kurochkin Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: notmuch@notmuchmail.org X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 04 Jul 2011 03:42:16 -0000 Great idea! Just a heads-up, this will conflict with the first two patches in the atomicity series (though git may not detect the second conflict). Both are trivial patches, though, so the merge should be easy. Three minor comments below. On Sun, Jul 3, 2011 at 9:59 PM, Dmitry Kurochkin wrote: > There is existing support for broken tests. =A0But it is not convenient > to use. =A0The primary issue is that we have to maintain a set of > test_expect_*_failure functions which are equivalent to the normal > test_expect_* counterparts except for what functions are called for > result reporting. =A0The patch adds test_subtest_known_broken function > which marks a subset as broken, making the normal test_expect_* > functions behave as test_expect_*_failure. =A0All test_expect_*_failure > functions are removed. =A0Test_known_broken_failure_ is changed to > format details the same way as test_failure_ does. > > Another benefit of this change is that the diff when a broken test is > fixed would be small and nice. > > Documentation is updated accordingly. > --- > =A0test/README =A0 =A0 =A0| =A0 17 ++++++++--------- > =A0test/test-lib.sh | =A0 53 +++++++++++++++-----------------------------= --------- > =A02 files changed, 23 insertions(+), 47 deletions(-) > > diff --git a/test/README b/test/README > index a245bf1..f926b9f 100644 > --- a/test/README > +++ b/test/README > @@ -132,20 +132,19 @@ library for your script to use. > =A0 =A0