Re: [PATCH 4/4] test: cope with glass backend file naming variations

Subject: Re: [PATCH 4/4] test: cope with glass backend file naming variations

Date: Tue, 12 Apr 2016 20:34:18 -0300

To: Tomi Ollila, notmuch@notmuchmail.org

Cc:

From: David Bremner


Tomi Ollila <tomi.ollila@iki.fi> writes:

> On Sun, Apr 10 2016, Tomi Ollila <tomi.ollila@iki.fi> wrote:
>
>> On Sat, Apr 09 2016, David Bremner <david@tethera.net> wrote:
>>
>>> ...
>>
>>> diff --git a/test/T150-tagging.sh b/test/T150-tagging.sh
>>> index 8adcabc..6fd6a18 100755
>>> --- a/test/T150-tagging.sh
>>> +++ b/test/T150-tagging.sh
>>> @@ -287,9 +287,9 @@ test_expect_code 1 "Empty tag names" 'notmuch tag + One'
>>>  test_expect_code 1 "Tag name beginning with -" 'notmuch tag +- One'
>>>  
>>>  test_begin_subtest "Xapian exception: read only files"
>>> -chmod u-w  ${MAIL_DIR}/.notmuch/xapian/*.DB
>>> +chmod u-w  ${MAIL_DIR}/.notmuch/xapian/*.${db_ending}
>>>  output=$(notmuch tag +something '*' 2>&1 | sed 's/: .*$//' )
>>> -chmod u+w  ${MAIL_DIR}/.notmuch/xapian/*.DB
>>> +chmod u+w  ${MAIL_DIR}/.notmuch/xapian/{*.DB,*.glass}

Pushed with Tomi's fix, and a similar one in T050-new.sh

Thread: