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 7E5126DE00C4 for ; Fri, 7 Sep 2018 17:05:45 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at cworth.org X-Spam-Flag: NO X-Spam-Score: 0.002 X-Spam-Level: X-Spam-Status: No, score=0.002 tagged_above=-999 required=5 tests=[AWL=0.013, 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 aNOgethvxjhu for ; Fri, 7 Sep 2018 17:05:44 -0700 (PDT) Received: from fethera.tethera.net (fethera.tethera.net [198.245.60.197]) by arlo.cworth.org (Postfix) with ESMTPS id 010B76DE00AC for ; Fri, 7 Sep 2018 17:05:43 -0700 (PDT) Received: from remotemail by fethera.tethera.net with local (Exim 4.89) (envelope-from ) id 1fyQkt-0004Gv-ML; Fri, 07 Sep 2018 20:05:39 -0400 Received: (nullmailer pid 12274 invoked by uid 1000); Sat, 08 Sep 2018 00:05:38 -0000 From: David Bremner To: David Edmondson , notmuch@notmuchmail.org Subject: Re: [PATCH v1 1/2] test: Absolute and relative directory paths. In-Reply-To: <20180825115756.24148-2-dme@dme.org> References: <20180825115756.24148-1-dme@dme.org> <20180825115756.24148-2-dme@dme.org> Date: Fri, 07 Sep 2018 21:05:38 -0300 Message-ID: <87sh2kj1kd.fsf@tethera.net> MIME-Version: 1.0 Content-Type: text/plain X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.26 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: Sat, 08 Sep 2018 00:05:45 -0000 David Edmondson writes: > --- > test/T030-config.sh | 10 ++++++++++ > 1 file changed, 10 insertions(+) > > diff --git a/test/T030-config.sh b/test/T030-config.sh > index e91c3659..f36695c6 100755 > --- a/test/T030-config.sh > +++ b/test/T030-config.sh > @@ -99,4 +99,14 @@ test_expect_equal "$(notmuch --config=alt-config-link config get user.name)" \ > test_begin_subtest "Writing config file through symlink follows symlink" > test_expect_equal "$(readlink alt-config-link)" "alt-config" > > +test_begin_subtest "Absolute database path returned" > +notmuch config set database.path ${HOME}/Maildir > +test_expect_equal "$(notmuch config get database.path)" \ > + "${HOME}/Maildir" > + > +test_begin_subtest "Relative database path properly expanded" > +notmuch config set database.path Maildir > +test_expect_equal "$(notmuch config get database.path)" \ > + "${HOME}/Maildir" > + > test_done > -- We want the test suite to pass after every commit, so you need to either squash the second test into the next commit, or mark it with test_subtest_known_broken. I'm fine with either option. d