From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from localhost (localhost [127.0.0.1]) by arlo.cworth.org (Postfix) with ESMTP id 3E2F96DE0119 for ; Wed, 16 Aug 2017 18:22:00 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at cworth.org X-Spam-Flag: NO X-Spam-Score: 0 X-Spam-Level: X-Spam-Status: No, score=0 tagged_above=-999 required=5 tests=[AWL=0.011, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01] autolearn=disabled Received: from arlo.cworth.org ([127.0.0.1]) by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id aewansm79TXe for ; Wed, 16 Aug 2017 18:21:59 -0700 (PDT) Received: from fethera.tethera.net (fethera.tethera.net [198.245.60.197]) by arlo.cworth.org (Postfix) with ESMTPS id 169126DE010F for ; Wed, 16 Aug 2017 18:21:58 -0700 (PDT) Received: from remotemail by fethera.tethera.net with local (Exim 4.89) (envelope-from ) id 1di9S3-00087L-L9; Wed, 16 Aug 2017 21:18:23 -0400 Received: (nullmailer pid 28084 invoked by uid 1000); Thu, 17 Aug 2017 01:21:54 -0000 From: David Bremner To: Yuri Volchkov , notmuch@notmuchmail.org Subject: Re: [PATCH 1/4] test: insert into the folder with trailing / In-Reply-To: <1502556453-11609-2-git-send-email-yuri.volchkov@gmail.com> References: <1502556453-11609-1-git-send-email-yuri.volchkov@gmail.com> <1502556453-11609-2-git-send-email-yuri.volchkov@gmail.com> Date: Wed, 16 Aug 2017 22:21:54 -0300 Message-ID: <871sobhtu5.fsf@tethera.net> MIME-Version: 1.0 Content-Type: text/plain X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.23 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, 17 Aug 2017 01:22:00 -0000 Yuri Volchkov writes: > From database's point of view, "Drafts" and "Drafts/" are different > folders > > Signed-off-by: Yuri Volchkov > --- > test/T070-insert.sh | 7 +++++++ > 1 file changed, 7 insertions(+) > > diff --git a/test/T070-insert.sh b/test/T070-insert.sh > index 48f212e..380934a 100755 > --- a/test/T070-insert.sh > +++ b/test/T070-insert.sh > @@ -132,6 +132,13 @@ output=$(notmuch search --output=files path:Drafts/new) > dirname=$(dirname "$output") > test_expect_equal "$dirname" "$MAIL_DIR/Drafts/new" > > +test_begin_subtest "Insert message into folder with trailing /" > +gen_insert_msg > +notmuch insert --folder=Drafts/ < "$gen_msg_filename" > +output=$(notmuch search --output=files id:${gen_msg_id}) > +dirname=$(dirname "$output") > +test_expect_equal "$dirname" "$MAIL_DIR/Drafts/new" > + This is basically OK, but for future reference you can add 'test_subtest_known_broken' when adding a test, and remove it in the patch providing a fix. The preserves the nice property that the test suite passes after every commit. d