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 E37CD431FD0 for ; Sun, 3 Jul 2011 20:46:47 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -0.799 X-Spam-Level: X-Spam-Status: No, score=-0.799 tagged_above=-999 required=5 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-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 MsPksrHuTLFN for ; Sun, 3 Jul 2011 20:46:47 -0700 (PDT) Received: from mail-bw0-f53.google.com (mail-bw0-f53.google.com [209.85.214.53]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) by olra.theworths.org (Postfix) with ESMTPS id D27C9431FB6 for ; Sun, 3 Jul 2011 20:46:46 -0700 (PDT) Received: by bwg12 with SMTP id 12so4439605bwg.26 for ; Sun, 03 Jul 2011 20:46:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=from:to:cc:subject:in-reply-to:references:user-agent:date :message-id:mime-version:content-type:content-transfer-encoding; bh=Xza8U2ez5XloopRtE2zm+BqLOxCbNXFCd1w6zoYLWaw=; b=RGS0ToXOul8IhBHJAV4JDG/II6m1KxM14G4Qu7stRmqnJXAt0dkWuXSWfTJos3jS8M WpSsNv8w3YDT7hcbnAbrA6lL7NJAoMC+w7p6b39f42sLNohrCGTqiKMJ9jbR9v7TgovP dD35zzHPdAk2fet4E7kmZ4oUGoHZn2mdoVIuY= Received: by 10.204.141.205 with SMTP id n13mr1572497bku.198.1309751205429; Sun, 03 Jul 2011 20:46:45 -0700 (PDT) Received: from localhost ([91.144.186.21]) by mx.google.com with ESMTPS id c13sm5158402bkc.14.2011.07.03.20.46.43 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 03 Jul 2011 20:46:44 -0700 (PDT) From: Dmitry Kurochkin To: Austin Clements Subject: Re: [PATCH 2/3] test: improve known broken tests support In-Reply-To: References: <1309744743-8556-1-git-send-email-dmitry.kurochkin@gmail.com> <1309744743-8556-2-git-send-email-dmitry.kurochkin@gmail.com> User-Agent: Notmuch/0.5-321-g41686e2 (http://notmuchmail.org) Emacs/23.3.1 (x86_64-pc-linux-gnu) Date: Mon, 04 Jul 2011 07:46:37 +0400 Message-ID: <877h7y4siq.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 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:46:48 -0000 On Sun, 3 Jul 2011 23:42:13 -0400, Austin Clements wrote: > Great idea! >=20 > 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. >=20 Oh. I hope atomicity will be there soon. > Three minor comments below. >=20 > On Sun, Jul 3, 2011 at 9:59 PM, Dmitry Kurochkin > wrote: > > There is existing support for broken tests. =C2=A0But it is not conveni= ent > > to use. =C2=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. =C2=A0The patch adds test_subtest_known_broken functi= on > > which marks a subset as broken, making the normal test_expect_* > > functions behave as test_expect_*_failure. =C2=A0All test_expect_*_fail= ure > > functions are removed. =C2=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. > > --- > > =C2=A0test/README =C2=A0 =C2=A0 =C2=A0| =C2=A0 17 ++++++++--------- > > =C2=A0test/test-lib.sh | =C2=A0 53 +++++++++++++++---------------------= ----------------- > > =C2=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. > > =C2=A0 =C2=A0