From: Austin Clements Date: Wed, 23 Oct 2013 00:21:59 +0000 (+2000) Subject: [PATCH v2 6/8] pick: Use list form of tag-changes in test X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=1f0fe1377152516e8007992aa68c62470713443f;p=notmuch-archives.git [PATCH v2 6/8] pick: Use list form of tag-changes in test --- diff --git a/47/fefeec65dc56a3403667f84b49081d5146badd b/47/fefeec65dc56a3403667f84b49081d5146badd new file mode 100644 index 000000000..eec0dcbd1 --- /dev/null +++ b/47/fefeec65dc56a3403667f84b49081d5146badd @@ -0,0 +1,122 @@ +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 4064D431FBF + for ; Tue, 22 Oct 2013 17:22:20 -0700 (PDT) +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 uqVsi+FxvrTO for ; + Tue, 22 Oct 2013 17:22:14 -0700 (PDT) +Received: from dmz-mailsec-scanner-7.mit.edu (dmz-mailsec-scanner-7.mit.edu + [18.7.68.36]) + by olra.theworths.org (Postfix) with ESMTP id EC11E431FDE + for ; Tue, 22 Oct 2013 17:22:07 -0700 (PDT) +X-AuditID: 12074424-b7f528e0000009aa-42-526716af0628 +Received: from mailhub-auth-2.mit.edu ( [18.7.62.36]) + by dmz-mailsec-scanner-7.mit.edu (Symantec Messaging Gateway) with SMTP + id 03.2A.02474.FA617625; Tue, 22 Oct 2013 20:22:07 -0400 (EDT) +Received: from outgoing.mit.edu (outgoing-auth-1.mit.edu [18.9.28.11]) + by mailhub-auth-2.mit.edu (8.13.8/8.9.2) with ESMTP id r9N0M5iR013714; + Tue, 22 Oct 2013 20:22:05 -0400 +Received: from drake.dyndns.org + (216-15-114-40.c3-0.arl-ubr1.sbo-arl.ma.cable.rcn.com + [216.15.114.40]) (authenticated bits=0) + (User authenticated as amdragon@ATHENA.MIT.EDU) + by outgoing.mit.edu (8.13.8/8.12.4) with ESMTP id r9N0M3eI005847 + (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=NOT); + Tue, 22 Oct 2013 20:22:04 -0400 +Received: from amthrax by drake.dyndns.org with local (Exim 4.77) + (envelope-from ) + id 1VYmD5-0008KQ-RW; Tue, 22 Oct 2013 20:22:03 -0400 +From: Austin Clements +To: notmuch@notmuchmail.org +Subject: [PATCH v2 6/8] pick: Use list form of tag-changes in test +Date: Tue, 22 Oct 2013 20:21:59 -0400 +Message-Id: <1382487721-31776-7-git-send-email-amdragon@mit.edu> +X-Mailer: git-send-email 1.8.4.rc3 +In-Reply-To: <1382487721-31776-1-git-send-email-amdragon@mit.edu> +References: <1382487721-31776-1-git-send-email-amdragon@mit.edu> +X-Brightmail-Tracker: + H4sIAAAAAAAAA+NgFtrDIsWRmVeSWpSXmKPExsUixG6norteLD3IYNdcaYvVc3ksrt+cyezA + 5LFz1l12j2erbjEHMEVx2aSk5mSWpRbp2yVwZTQffcpc0CtQcX91eQPjRN4uRk4OCQETiRub + VrBD2GISF+6tZ+ti5OIQEtjHKPHvTA+Us5FRYubi1ywQzh0miX1/XkBl5jJKfH20gAWkn01A + Q2Lb/uWMILaIgLTEzruzWUFsZgFHic/7F7GB2MICThIrp/1nArFZBFQluhduBavhFXCQ6Dy4 + F+oOJYmFp7aBxTmBet/s+ADWKwRUM2XnGZYJjPwLGBlWMcqm5Fbp5iZm5hSnJusWJyfm5aUW + 6Zrr5WaW6KWmlG5iBAeSi8oOxuZDSocYBTgYlXh4H7SkBQmxJpYVV+YeYpTkYFIS5VXnTw8S + 4kvKT6nMSCzOiC8qzUktPsQowcGsJMLb7AtUzpuSWFmVWpQPk5LmYFES573FYR8kJJCeWJKa + nZpakFoEk5Xh4FCS4PUVBRoqWJSanlqRlplTgpBm4uAEGc4DNDwPpIa3uCAxtzgzHSJ/ilFR + SpzXByQhAJLIKM2D64VF+itGcaBXhHkNQap4gEkCrvsV0GAmoMFTloBcXVySiJCSamAsjuf9 + 6/2972To5feHhD7suHX8lIC/z6lFS5YcW7TVbRrnhaz9cfxqsnO91VNFNRdbr8zm2PfNcq/R + F4n0rc8nVTP2X0wQm8cxr1blWZH3ZJHNwYe2xQaq1bN8yVTtXDZTO9vgtoXdq2/2T7V2vvlQ + u/du4m6tG4JSRRu/6H3avMzd/W5Xn7OdEktxRqKhFnNRcSIA4rndxs8CAAA= +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: Wed, 23 Oct 2013 00:22:20 -0000 + +Currently we support both string and list forms of tag-changes for +historical reasons. This is about to change, so fix pick's tests that +use the legacy string form of tag-changes. +--- + contrib/notmuch-pick/test/emacs-pick | 8 ++++---- + 1 file changed, 4 insertions(+), 4 deletions(-) + +diff --git a/contrib/notmuch-pick/test/emacs-pick b/contrib/notmuch-pick/test/emacs-pick +index a802d0e..40b0738 100755 +--- a/contrib/notmuch-pick/test/emacs-pick ++++ b/contrib/notmuch-pick/test/emacs-pick +@@ -44,7 +44,7 @@ test_emacs '(add-to-list (quote load-path) "'$PICK_DIR'") + (notmuch-pick "tag:inbox") + (notmuch-test-wait) + (forward-line) +- (notmuch-pick-tag "+test_tag") ++ (notmuch-pick-tag (list "+test_tag")) + (test-output) + (delete-other-windows)' + test_expect_equal_file OUTPUT $EXPECTED/notmuch-pick-tag-inbox-tagged +@@ -59,7 +59,7 @@ test_emacs '(add-to-list (quote load-path) "'$PICK_DIR'") + (notmuch-pick "tag:inbox") + (notmuch-test-wait) + (forward-line) +- (notmuch-pick-tag "-test_tag") ++ (notmuch-pick-tag (list "-test_tag")) + (test-output) + (delete-other-windows)' + test_expect_equal_file OUTPUT $EXPECTED/notmuch-pick-tag-inbox +@@ -75,7 +75,7 @@ test_emacs '(add-to-list (quote load-path) "'$PICK_DIR'") + (notmuch-test-wait) + ;; move to a sizable thread + (forward-line 26) +- (notmuch-pick-tag-thread "+test_thread_tag") ++ (notmuch-pick-tag-thread (list "+test_thread_tag")) + (test-output) + (delete-other-windows)' + test_expect_equal_file OUTPUT $EXPECTED/notmuch-pick-tag-inbox-thread-tagged +@@ -98,7 +98,7 @@ test_emacs '(add-to-list (quote load-path) "'$PICK_DIR'") + (notmuch-test-wait) + ;; move to the same sizable thread as above + (forward-line 26) +- (notmuch-pick-tag-thread "-test_thread_tag") ++ (notmuch-pick-tag-thread (list "-test_thread_tag")) + (test-output) + (delete-other-windows)' + test_expect_equal_file OUTPUT $EXPECTED/notmuch-pick-tag-inbox +-- +1.8.4.rc3 +