database error
[notmuch-archives.git] / 20 / 62c4d7af488b4d52a6d1a83c486737ff9fbd3a
1 Return-Path: <patricktotzke@googlemail.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 77CA0429E21\r
6         for <notmuch@notmuchmail.org>; Mon,  2 Jan 2012 06:51:46 -0800 (PST)\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
8 X-Spam-Flag: NO\r
9 X-Spam-Score: -0.799\r
10 X-Spam-Level: \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 DAp3A-zls9MJ for <notmuch@notmuchmail.org>;\r
17         Mon,  2 Jan 2012 06:51:44 -0800 (PST)\r
18 Received: from mail-ww0-f45.google.com (mail-ww0-f45.google.com\r
19  [74.125.82.45])        (using TLSv1 with cipher RC4-SHA (128/128 bits))        (No client\r
20  certificate requested) by olra.theworths.org (Postfix) with ESMTPS id\r
21  04140431FD0    for <notmuch@notmuchmail.org>; Mon,  2 Jan 2012 06:51:43 -0800\r
22  (PST)\r
23 Received: by wgbds13 with SMTP id ds13so22064015wgb.2\r
24         for <notmuch@notmuchmail.org>; Mon, 02 Jan 2012 06:51:42 -0800 (PST)\r
25 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;\r
26         d=googlemail.com; s=gamma;\r
27         h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references;\r
28         bh=UwvN2C0kcy+yUeoDK8d60+VcmzNXm4cp0h/xXnJ6yW8=;\r
29         b=evyx8Kp5gcl6QCMH+wCLMRKG16maCLD1JAuZSIG4EJ9rG2/l1EM2uOiTR0BkGOoGq8\r
30         xjtIzQ5/wF0/G/K4/kvtG3/Jt1gZAPDkzuqUcb2mqpDvTmxuPP9h6gVDVyNhf5Pdir2t\r
31         63ydWutZTRd26n8WiD7qHDHH4o1BZbrh+/5wQ=\r
32 Received: by 10.227.206.209 with SMTP id fv17mr1031949wbb.19.1325515902518;\r
33         Mon, 02 Jan 2012 06:51:42 -0800 (PST)\r
34 Received: from localhost (cpc1-sgyl2-0-0-cust548.18-2.cable.virginmedia.com.\r
35         [82.41.10.37])\r
36         by mx.google.com with ESMTPS id ei9sm118532513wid.0.2012.01.02.06.51.40\r
37         (version=TLSv1/SSLv3 cipher=OTHER);\r
38         Mon, 02 Jan 2012 06:51:41 -0800 (PST)\r
39 From: Patrick Totzke <patricktotzke@googlemail.com>\r
40 To: notmuch@notmuchmail.org\r
41 Subject: [PATCH 1/2] clean up "compare thread ids" python test\r
42 Date: Mon,  2 Jan 2012 14:51:26 +0000\r
43 Message-Id: <1325515887-15201-1-git-send-email-patricktotzke@gmail.com>\r
44 X-Mailer: git-send-email 1.7.5.4\r
45 In-Reply-To: <20120102144722.18163.37346@brick.lan>\r
46 References: <20120102144722.18163.37346@brick.lan>\r
47 X-BeenThere: notmuch@notmuchmail.org\r
48 X-Mailman-Version: 2.1.13\r
49 Precedence: list\r
50 List-Id: "Use and development of the notmuch mail system."\r
51         <notmuch.notmuchmail.org>\r
52 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
53         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
54 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
55 List-Post: <mailto:notmuch@notmuchmail.org>\r
56 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
57 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
58         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
59 X-List-Received-Date: Mon, 02 Jan 2012 14:51:46 -0000\r
60 \r
61 This makes the test script open the database in READ_ONLY mode\r
62 and use the libraries own sorting methods instead of "sort".\r
63 ---\r
64  test/python |    7 ++++---\r
65  1 files changed, 4 insertions(+), 3 deletions(-)\r
66 \r
67 diff --git a/test/python b/test/python\r
68 index c3aa726..c318cc1 100755\r
69 --- a/test/python\r
70 +++ b/test/python\r
71 @@ -7,11 +7,12 @@ add_email_corpus\r
72  test_begin_subtest "compare thread ids"\r
73  test_python <<EOF\r
74  import notmuch\r
75 -db = notmuch.Database(mode=notmuch.Database.MODE.READ_WRITE)\r
76 +db = notmuch.Database(mode=notmuch.Database.MODE.READ_ONLY)\r
77  q_new = notmuch.Query(db, 'tag:inbox')\r
78 +q_new.set_sort(notmuch.Query.SORT.OLDEST_FIRST)\r
79  for t in q_new.search_threads():\r
80      print t.get_thread_id()\r
81  EOF\r
82 -notmuch search --output=threads tag:inbox | sed s/^thread:// | sort > EXPECTED\r
83 -test_expect_equal_file <(sort OUTPUT) EXPECTED\r
84 +notmuch search --sort=oldest-first --output=threads tag:inbox | sed s/^thread:// > EXPECTED\r
85 +test_expect_equal_file OUTPUT EXPECTED\r
86  test_done\r
87 -- \r
88 1.7.5.4\r
89 \r