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 3982B6DE091E for ; Sat, 8 Sep 2018 04:49:47 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at cworth.org X-Spam-Flag: NO X-Spam-Score: 0.394 X-Spam-Level: X-Spam-Status: No, score=0.394 tagged_above=-999 required=5 tests=[AWL=-0.239, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_NEUTRAL=0.652, UNPARSEABLE_RELAY=0.001] 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 Dies8QN7WcdK for ; Sat, 8 Sep 2018 04:49:46 -0700 (PDT) Received: from mail-wm0-f65.google.com (mail-wm0-f65.google.com [74.125.82.65]) by arlo.cworth.org (Postfix) with ESMTPS id F334F6DE0927 for ; Sat, 8 Sep 2018 04:49:45 -0700 (PDT) Received: by mail-wm0-f65.google.com with SMTP id o18-v6so17009658wmc.0 for ; Sat, 08 Sep 2018 04:49:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dme-org.20150623.gappssmtp.com; s=20150623; h=from:to:subject:date:message-id:in-reply-to:references; bh=qOkuWmvYhTg2rvod11dZdGMySnWP+KMU+foFirHhVbQ=; b=Q8xgq2FKDQ5hQwZAlfcQTHcaVmsswvm7wjek6Iehtm5iHQ9pFNJJAGP6JNn2/6j8Vz ipwR54ykwHLp8CdkEkTzxa5mgdSv3ILANa1xBkIhFOgM8Th4y+POksfJSWh8n/41dl1J KL/nROaV+Oml2ryOs8N52EdzihVx/qfn5DdZR5ty2fULWNdJgSq8v94627LFaEtuqo5Q mDKuef1WvSRWWm2Q45Uhpt24MdRn1ctx32RuFnIrfPWr4JxBPP5IkCojWom5LHQwNkJ6 mNj6T/omP6y3bBmyLI1ZEGSi+6WMn+mm+FV+M7UD3rF2SnvEmkqyTx7ZT4UfAsNMU7hz 7Ssw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references; bh=qOkuWmvYhTg2rvod11dZdGMySnWP+KMU+foFirHhVbQ=; b=MuBhK1vQjG7MgLFYFurcpVjjzqNJgdr5p8sqjPOu20OetWrL5tk0E5qbiortK+gpBt xOn8UFb0q4hGiIDYcJ/fHZnLV5h5raFt3DPQu8e/0L1uTNRq4tcR4+dYCHTfQtxK9NP3 ubwquY1yS1gLuHMrUalyXv3MZvx5n1ylYIcmUpRod21OeXyIKnNHndSrmR5GFaQ4VL32 RvNQN4dRi4DaduIJ0kWP5HNYa9V/mhXYeX8crWYlBYhcuSGNzmnZ+bm1XUWuFhwr7JW7 MS2enHG/6RpAc/OhHUCsLxs39YZzJZrupV6hVSV0RtUhryWL1qr6+zbvQlvjKX6ysFfy Spzg== X-Gm-Message-State: APzg51DY44TijEhOp8yhqRRNstvebnRdcUSMbVbUqj2TJ5vgnGMWojiD mANn0e7YDue4rA9p5te9/LfFlbpAd9M= X-Google-Smtp-Source: ANB0Vdb9JCF4H3gPWSwIiMFN7nMTRafEXgTQ1/POMj5q8ocvByZhdOs+pxVexpaXGYDdJ1dgXRQzcw== X-Received: by 2002:a1c:908b:: with SMTP id s133-v6mr8041032wmd.69.1536407384343; Sat, 08 Sep 2018 04:49:44 -0700 (PDT) Received: from disaster-area.hh.sledj.net (disaster-area.hh.sledj.net. [81.149.164.25]) by smtp.gmail.com with ESMTPSA id h7-v6sm8940393wrs.3.2018.09.08.04.49.42 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 08 Sep 2018 04:49:42 -0700 (PDT) Received: from localhost (disaster-area.hh.sledj.net [local]) by disaster-area.hh.sledj.net (OpenSMTPD) with ESMTPA id 45a1ae18 for ; Sat, 8 Sep 2018 11:49:41 +0000 (UTC) From: David Edmondson To: notmuch@notmuchmail.org Subject: [PATCH v2 2/2] test: Absolute and relative directory paths. Date: Sat, 8 Sep 2018 12:49:41 +0100 Message-Id: <20180908114941.30501-2-dme@dme.org> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20180908114941.30501-1-dme@dme.org> References: <20180908114941.30501-1-dme@dme.org> 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 11:49:47 -0000 --- 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 -- 2.11.0