1 Return-Path: <novalazy@gmail.com>
\r
2 X-Original-To: notmuch@notmuchmail.org
\r
3 Delivered-To: notmuch@notmuchmail.org
\r
4 Received: from localhost (localhost [127.0.0.1])
\r
5 by olra.theworths.org (Postfix) with ESMTP id 34F82431FBC
\r
6 for <notmuch@notmuchmail.org>; Fri, 25 May 2012 19:42:10 -0700 (PDT)
\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org
\r
11 X-Spam-Status: No, score=-0.799 tagged_above=-999 required=5
\r
12 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1,
\r
13 FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled
\r
14 Received: from olra.theworths.org ([127.0.0.1])
\r
15 by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)
\r
16 with ESMTP id WuQ4agmCzcIB for <notmuch@notmuchmail.org>;
\r
17 Fri, 25 May 2012 19:42:09 -0700 (PDT)
\r
18 Received: from mail-pb0-f53.google.com (mail-pb0-f53.google.com
\r
19 [209.85.160.53]) (using TLSv1 with cipher RC4-MD5 (128/128 bits))
\r
20 (No client certificate requested)
\r
21 by olra.theworths.org (Postfix) with ESMTPS id 88087431FB6
\r
22 for <notmuch@notmuchmail.org>; Fri, 25 May 2012 19:42:09 -0700 (PDT)
\r
23 Received: by pbbrr13 with SMTP id rr13so2928683pbb.26
\r
24 for <notmuch@notmuchmail.org>; Fri, 25 May 2012 19:42:08 -0700 (PDT)
\r
25 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
\r
26 h=date:message-id:from:to:subject:in-reply-to:references:mime-version
\r
27 :content-type:content-disposition:content-transfer-encoding;
\r
28 bh=SCbHqS54x4FxK+PCN9RkT1XrGTHNnsbB189ErBGWl30=;
\r
29 b=B0KVH/K4T30ZhH7EM8wphGfbEJ9HJVLwPZ8N8OuNBhEYvnVlYJMXN35O1lvcA+PoE4
\r
30 MfHkOykIQqvO/+yrd76uC2y7HrB/xuIqMNfNFcoC6oyBuqXjCZrROUcz6btPrjmmG9TO
\r
31 v3pKNQ7yiCrJU5jX6GXffIXGMWHyIwgTEpYRWptjakX8ymssDQ6Gfgv6V3WyoPXOHI90
\r
32 JX67cNU4OMUzquk6wpK00peQ9erbPWqNrpPJxgXvACDLuo4yFpIXgdavtvzzkmgrhnvw
\r
33 ZH/kV1Te9xN6l5SPlQncDRsVUbzRYG+9e/nhEd+MNZDjI+/mqMvBT/oJ7ufckCrk0RNd
\r
35 Received: by 10.68.201.169 with SMTP id kb9mr3186099pbc.101.1338000128683;
\r
36 Fri, 25 May 2012 19:42:08 -0700 (PDT)
\r
37 Received: from localhost (215.42.233.220.static.exetel.com.au.
\r
39 by mx.google.com with ESMTPS id nw7sm10970332pbb.73.2012.05.25.19.42.05
\r
40 (version=TLSv1/SSLv3 cipher=OTHER);
\r
41 Fri, 25 May 2012 19:42:07 -0700 (PDT)
\r
42 Date: Sat, 26 May 2012 12:42:02 +1000
\r
43 Message-ID: <20120526124202.GC2328@hili.localdomain>
\r
44 From: Peter Wang <novalazy@gmail.com>
\r
45 To: notmuch@notmuchmail.org
\r
46 Subject: Re: [PATCH 06/10] Fix test/count on FreeBSD
\r
47 In-Reply-To: <1337953411-21000-7-git-send-email-pioto@pioto.org>
\r
48 References: <1337953411-21000-1-git-send-email-pioto@pioto.org>
\r
49 <1337953411-21000-7-git-send-email-pioto@pioto.org>
\r
51 Content-Type: text/plain; charset=utf-8
\r
52 Content-Disposition: inline
\r
53 Content-Transfer-Encoding: 8bit
\r
54 X-BeenThere: notmuch@notmuchmail.org
\r
55 X-Mailman-Version: 2.1.13
\r
57 List-Id: "Use and development of the notmuch mail system."
\r
58 <notmuch.notmuchmail.org>
\r
59 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,
\r
60 <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>
\r
61 List-Archive: <http://notmuchmail.org/pipermail/notmuch>
\r
62 List-Post: <mailto:notmuch@notmuchmail.org>
\r
63 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>
\r
64 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,
\r
65 <mailto:notmuch-request@notmuchmail.org?subject=subscribe>
\r
66 X-List-Received-Date: Sat, 26 May 2012 02:42:10 -0000
\r
68 On Fri, 25 May 2012 09:43:27 -0400, Mike Kelly <pioto@pioto.org> wrote:
\r
69 > FreeBSD's `wc -l` includes some white space in front of the number, so
\r
72 > test/count | 8 ++++----
\r
73 > 1 file changed, 4 insertions(+), 4 deletions(-)
\r
75 > diff --git a/test/count b/test/count
\r
76 > index 300b171..618dbb9 100755
\r
79 > @@ -8,22 +8,22 @@ SEARCH="\"*\""
\r
81 > test_begin_subtest "message count is the default for notmuch count"
\r
82 > test_expect_equal \
\r
83 > - "`notmuch search --output=messages ${SEARCH} | wc -l`" \
\r
84 > + "`notmuch search --output=messages ${SEARCH} | wc -l |sed 's/^[[:space:]]*//'`" \
\r
85 > "`notmuch count ${SEARCH}`"
\r
87 You could perform a proper integer comparison like:
\r
89 test_expect_success "message count is the default for notmuch count" '
\r
90 test "`notmuch search --output=messages ${SEARCH} | wc -l`" \
\r
91 -eq "`notmuch count ${SEARCH}`"
\r