Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 6B4C1431FBF for ; Sat, 24 Nov 2012 21:25:52 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -0.7 X-Spam-Level: X-Spam-Status: No, score=-0.7 tagged_above=-999 required=5 tests=[RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled Received: from olra.theworths.org ([127.0.0.1]) by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id TzYKDXAsk0mL for ; Sat, 24 Nov 2012 21:25:50 -0800 (PST) Received: from dmz-mailsec-scanner-6.mit.edu (DMZ-MAILSEC-SCANNER-6.MIT.EDU [18.7.68.35]) by olra.theworths.org (Postfix) with ESMTP id C18AD431FAE for ; Sat, 24 Nov 2012 21:25:50 -0800 (PST) X-AuditID: 12074423-b7fab6d0000008f9-ec-50b1abddae83 Received: from mailhub-auth-4.mit.edu ( [18.7.62.39]) by dmz-mailsec-scanner-6.mit.edu (Symantec Messaging Gateway) with SMTP id A4.6F.02297.DDBA1B05; Sun, 25 Nov 2012 00:25:49 -0500 (EST) Received: from outgoing.mit.edu (OUTGOING-AUTH.MIT.EDU [18.7.22.103]) by mailhub-auth-4.mit.edu (8.13.8/8.9.2) with ESMTP id qAP5Pn6r014560; Sun, 25 Nov 2012 00:25:49 -0500 Received: from drake.dyndns.org (209-6-116-242.c3-0.arl-ubr1.sbo-arl.ma.cable.rcn.com [209.6.116.242]) (authenticated bits=0) (User authenticated as amdragon@ATHENA.MIT.EDU) by outgoing.mit.edu (8.13.6/8.12.4) with ESMTP id qAP5PlOG002624 (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=NOT); Sun, 25 Nov 2012 00:25:48 -0500 (EST) Received: from amthrax by drake.dyndns.org with local (Exim 4.77) (envelope-from ) id 1TcUix-0007dU-DM; Sun, 25 Nov 2012 00:25:47 -0500 From: Austin Clements To: notmuch@notmuchmail.org Subject: [PATCH 1/2] test: Add a test for skipping ignored broken symlinks Date: Sun, 25 Nov 2012 00:25:44 -0500 Message-Id: <1353821145-29182-2-git-send-email-amdragon@mit.edu> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1353821145-29182-1-git-send-email-amdragon@mit.edu> References: <1353821145-29182-1-git-send-email-amdragon@mit.edu> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFtrIIsWRmVeSWpSXmKPExsUixG6nrnt39cYAgzczNS2u35zJ7MDo8WzV LeYAxigum5TUnMyy1CJ9uwSujAd7TzEXzGWtWHnzP2MD4zKWLkZODgkBE4krH5dC2WISF+6t Z+ti5OIQEtjHKLH06UwmkISQwAZGifUzLCASj5gkvp6ZzQjhzGWU+HruETtIFZuAhsS2/csZ QWwRAWmJnXdns3YxcnAwC6hJ/OlSAQkLC3hJTFl1khnEZhFQlfhzqgdsAa+Ag8Tllu9MEFco SnQ/m8AG0sop4CjRPF0Y4gYHib3TljBOYORfwMiwilE2JbdKNzcxM6c4NVm3ODkxLy+1SNdM LzezRC81pXQTIzhkXJR3MP45qHSIUYCDUYmH90bixgAh1sSy4srcQ4ySHExKorxay4BCfEn5 KZUZicUZ8UWlOanFhxglOJiVRHitVYFyvCmJlVWpRfkwKWkOFiVx3mspN/2FBNITS1KzU1ML UotgsjIcHEoSvOtWATUKFqWmp1akZeaUIKSZODhBhvMADV8NUsNbXJCYW5yZDpE/xagoJc57 FCQhAJLIKM2D64XF9CtGcaBXhHlnglTxANMBXPcroMFMQIOfzl4HMrgkESEl1cCYtCe5Xsb4 wWzTSt4lzBEPHycv2vZ52hv+PsWVWsnnXELOfbzKO58xfLvaceU913b+LS13+Nli6GqjKTtD t8VGI1F/a5M/T86HODGzIxtKp1dP6WiTPC+77s+nH8sa9humvyu9vi/jtP/Wo6Vt0yN+CTWp 7Hzyu9b+2L5truuV3b+zbOdRtXuqxFKckWioxVxUnAgAMWipMcQCAAA= X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.13 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: Sun, 25 Nov 2012 05:25:53 -0000 Currently marked as broken because we abort on broken symlinks, even if they are in the ignore list. --- test/new | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/test/new b/test/new index 587aa11..59892a7 100755 --- a/test/new +++ b/test/new @@ -203,4 +203,11 @@ test_expect_equal "$output" \ No new mail." +test_begin_subtest "Don't stop for ignored broken symlinks" +test_subtest_known_broken +notmuch config set new.ignore .git ignored_file .ignored_hidden_file broken_link +ln -s i_do_not_exist "${MAIL_DIR}"/broken_link +output=$(NOTMUCH_NEW 2>&1) +test_expect_equal "$output" "No new mail." + test_done -- 1.7.10.4