1 Return-Path: <thomas@schwinge.name>
\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 ED884431FD0
\r
6 for <notmuch@notmuchmail.org>; Thu, 29 Sep 2011 16:26:53 -0700 (PDT)
\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org
\r
11 X-Spam-Status: No, score=0 tagged_above=-999 required=5
\r
12 tests=[RCVD_IN_DNSWL_NONE=-0.0001] autolearn=disabled
\r
13 Received: from olra.theworths.org ([127.0.0.1])
\r
14 by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)
\r
15 with ESMTP id kW1uEp+P5JBC for <notmuch@notmuchmail.org>;
\r
16 Thu, 29 Sep 2011 16:26:53 -0700 (PDT)
\r
17 Received: from smtprelay05.ispgateway.de (smtprelay05.ispgateway.de
\r
19 by olra.theworths.org (Postfix) with ESMTP id 3E74E431FB6
\r
20 for <notmuch@notmuchmail.org>; Thu, 29 Sep 2011 16:26:53 -0700 (PDT)
\r
21 Received: from [87.180.87.168] (helo=stokes.schwinge.homeip.net)
\r
22 by smtprelay05.ispgateway.de with esmtpa (Exim 4.68)
\r
23 (envelope-from <thomas@schwinge.name>) id 1R9Q0B-0007Hh-Uw
\r
24 for notmuch@notmuchmail.org; Fri, 30 Sep 2011 01:26:52 +0200
\r
25 Received: (qmail 28339 invoked from network); 29 Sep 2011 23:26:50 -0000
\r
26 Received: from kepler.schwinge.homeip.net (192.168.111.7)
\r
27 by stokes.schwinge.homeip.net with QMQP; 29 Sep 2011 23:26:50 -0000
\r
28 Received: (nullmailer pid 7455 invoked by uid 1000);
\r
29 Thu, 29 Sep 2011 23:26:50 -0000
\r
30 From: Thomas Schwinge <thomas@schwinge.name>
\r
31 To: notmuch@notmuchmail.org
\r
32 Subject: [PATCH] Repeatability when copying a whole directory into a new one.
\r
33 Date: Fri, 30 Sep 2011 01:26:46 +0200
\r
34 Message-Id: <1317338806-7414-1-git-send-email-thomas@schwinge.name>
\r
35 X-Mailer: git-send-email 1.7.5.4
\r
37 Content-Type: text/plain; charset=UTF-8
\r
38 Content-Transfer-Encoding: 8bit
\r
39 X-Df-Sender: dGhvbWFzQHNjaHdpbmdlLm5hbWU=
\r
40 Cc: Thomas Schwinge <thomas@schwinge.name>
\r
41 X-BeenThere: notmuch@notmuchmail.org
\r
42 X-Mailman-Version: 2.1.13
\r
44 List-Id: "Use and development of the notmuch mail system."
\r
45 <notmuch.notmuchmail.org>
\r
46 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,
\r
47 <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>
\r
48 List-Archive: <http://notmuchmail.org/pipermail/notmuch>
\r
49 List-Post: <mailto:notmuch@notmuchmail.org>
\r
50 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>
\r
51 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,
\r
52 <mailto:notmuch-request@notmuchmail.org?subject=subscribe>
\r
53 X-List-Received-Date: Thu, 29 Sep 2011 23:26:54 -0000
\r
55 This new test currently fails -- but it shouldn't.
\r
60 I found this while manually copying directories and running notmuch new.
\r
62 Am I just too sleepy at this time, or is it another DB vs. directory
\r
65 BROKEN Repeatability when copying a whole directory into a new one
\r
66 --- new.18.expected 2011-09-29 23:23:39.000000000 +0000
\r
67 +++ new.18.output 2011-09-29 23:23:39.000000000 +0000
\r
69 -Processed 51 total files in almost no time.
\r
77 test/new | 21 +++++++++++++++++++++
\r
78 1 files changed, 21 insertions(+), 0 deletions(-)
\r
80 diff --git a/test/new b/test/new
\r
81 index 49f390d..0afb04c 100755
\r
84 @@ -153,4 +153,25 @@ rm -rf "${MAIL_DIR}"/two
\r
85 output=$(NOTMUCH_NEW)
\r
86 test_expect_equal "$output" "No new mail. Removed 3 messages."
\r
89 +test_begin_subtest 'Repeatability when copying a whole directory into a new one'
\r
93 +mkdir "$MAIL_DIR"/2nd
\r
94 +cp -a "$MAIL_DIR"/cur "$MAIL_DIR"/2nd/
\r
95 +output1=$(notmuch new)
\r
97 +rm -rf "$MAIL_DIR"/2nd
\r
98 +notmuch new > /dev/null
\r
100 +# This was quite enjoyable. Let's do it again.
\r
101 +mkdir "$MAIL_DIR"/2nd
\r
102 +cp -a "$MAIL_DIR"/cur "$MAIL_DIR"/2nd/
\r
103 +output2=$(notmuch new)
\r
105 +test_subtest_known_broken
\r
106 +test_expect_equal "$output2" "$output1"
\r