X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=blobdiff_plain;f=test%2Fsearch-by-folder;h=5cc2ca8d388a651610ad9d995227fb5e94ebb106;hp=162158c385a6e1c66af1699ce4d1133e375ce56f;hb=37be45767fef9348300bb45c82efd474bb01651f;hpb=600f3761dc48c91a5ba9a18ddeb7fd8af22e71de diff --git a/test/search-by-folder b/test/search-by-folder index 162158c3..5cc2ca8d 100755 --- a/test/search-by-folder +++ b/test/search-by-folder @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash test_description='"notmuch search" by folder: (with variations)' . ./test-lib.sh @@ -23,14 +23,12 @@ test_expect_equal "$output" "thread:XXX 2001-01-05 [1/1] Notmuch Test Suite; B test_begin_subtest "After removing duplicate instance of matching path" rm -r "${MAIL_DIR}/bad/news" -increment_mtime "${MAIL_DIR}/bad" notmuch new output=$(notmuch search folder:bad/news | notmuch_search_sanitize) test_expect_equal "$output" "thread:XXX 2001-01-05 [1/1] Notmuch Test Suite; Bears (inbox unread)" test_begin_subtest "After rename, old path returns nothing" mv "${MAIL_DIR}/duplicate/bad/news" "${MAIL_DIR}/duplicate/bad/olds" -increment_mtime "${MAIL_DIR}/duplicate/bad" notmuch new output=$(notmuch search folder:bad/news | notmuch_search_sanitize) test_expect_equal "$output" ""