Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 1313A431FD0 for ; Thu, 12 May 2011 06:18:52 -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 UqGID24TYwC0 for ; Thu, 12 May 2011 06:18:50 -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 ECE8E431FB6 for ; Thu, 12 May 2011 06:18:49 -0700 (PDT) Received: by qyg14 with SMTP id 14so995426qyg.5 for ; Thu, 12 May 2011 06:18:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=kPHUOeOqbJoV3GvRXYh0ycdfU0JZx78YjCt5yfKsqoc=; b=tS3d+153BN1o0+0w/HAyONArx+1xSMe+CQl76Ar5N2cDj/Y+cXQNygLtW1LDxXCl/i nfFCISXKCWTVveVz0TVEmvRTbfhvalWIv/5lPfsKjIuDtz0nt4XdI23CRH9xkYP+0z4P 7swoSHPMmHCHTzGsL8UM4c/dhoFL6OHT8qgR4= DomainKey-Signature: a=rsa-sha1; c=nofws; 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; b=fPkrPlzuvvIoZGIDgbQCxFDJnIzPAN7V4DyE8i6mPG7cw6peWCkQACIBE/1AaXdVsc iKOUT8+0B4QzHb/Z+e3SRomK6Nk6WcY3QsbFIwVDDhhtJq1IYXp5KQZuPADpyi1fSz5f CltYbVbjD88gwyHeIvvygmjSroAi89+1Hyn/U= MIME-Version: 1.0 Received: by 10.229.114.194 with SMTP id f2mr144507qcq.112.1305206329038; Thu, 12 May 2011 06:18:49 -0700 (PDT) Sender: amdragon@gmail.com Received: by 10.229.233.17 with HTTP; Thu, 12 May 2011 06:18:48 -0700 (PDT) In-Reply-To: <87wrhw2jmm.fsf@praet.org> References: <8762pn7gth.fsf@servo.factory.finestructure.net> <87iptkfzwx.fsf@servo.factory.finestructure.net> <877h9zokod.fsf@servo.factory.finestructure.net> <878vuencm5.fsf@servo.factory.finestructure.net> <878vuejym8.fsf@servo.factory.finestructure.net> <87wrhw2jmm.fsf@praet.org> Date: Thu, 12 May 2011 09:18:48 -0400 X-Google-Sender-Auth: 1-xpfNg_vp0-Vqj7i3fJV1h0IPs Message-ID: Subject: Re: release-candidate/0.6 From: Austin Clements To: Pieter Praet Content-Type: text/plain; charset=ISO-8859-1 Cc: Notmuch Mail 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: Thu, 12 May 2011 13:18:52 -0000 On Thu, May 12, 2011 at 8:22 AM, Pieter Praet wrote: > The atomicity tests were failing here because I didn't have GDB > installed, so I've added it as a prereq. Sorry, I've had a patch to address that sitting around, but hadn't sent it out (and I only fixed that one test). I would suggest a somewhat gentler approach than "error", though: if test_expect_success "prereq: gdb is present" "which gdb"; then test_set_prereq GDB fi (Plus the two test-lib patches I just sent: id:1305206080-17461-1-git-send-email-amdragon@mit.edu and id:1305206110-17511-1-git-send-email-amdragon@mit.edu). "error" has the disadvantage that it doesn't get counted as a failed test in the final tally (because, indeed, it's not a failed test) and also that it immediately terminates the test script so it's not actually using the prereq system (which is fine for the atomicity test since all of the test cases depend on GDB, but the pattern I'm proposing works for finer-grained prerequisites). Plus, with the above approach, if you don't have a prerequisite, the final tally shows one failed test plus some number of skipped tests (and the total number of tests never changes), which I would argue is cleaner.