[PATCH 01/10] test: fix argument order of test_expect_equal_file in few tests
authorDmitry Kurochkin <dmitry.kurochkin@gmail.com>
Tue, 28 Jun 2011 04:45:02 +0000 (08:45 +0400)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:38:45 +0000 (09:38 -0800)
b7/48fc8450ddfe7040875372fd630a0ee01a8d04 [new file with mode: 0644]

diff --git a/b7/48fc8450ddfe7040875372fd630a0ee01a8d04 b/b7/48fc8450ddfe7040875372fd630a0ee01a8d04
new file mode 100644 (file)
index 0000000..037891d
--- /dev/null
@@ -0,0 +1,91 @@
+Return-Path: <dmitry.kurochkin@gmail.com>\r
+X-Original-To: notmuch@notmuchmail.org\r
+Delivered-To: notmuch@notmuchmail.org\r
+Received: from localhost (localhost [127.0.0.1])\r
+       by olra.theworths.org (Postfix) with ESMTP id 82C3D429E4E\r
+       for <notmuch@notmuchmail.org>; Mon, 27 Jun 2011 21:45:30 -0700 (PDT)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: -0.799\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=-0.799 tagged_above=-999 required=5\r
+       tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1,\r
+       FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled\r
+Received: from olra.theworths.org ([127.0.0.1])\r
+       by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
+       with ESMTP id 3ET9zOiA6VDs for <notmuch@notmuchmail.org>;\r
+       Mon, 27 Jun 2011 21:45:30 -0700 (PDT)\r
+Received: from mail-bw0-f53.google.com (mail-bw0-f53.google.com\r
+       [209.85.214.53]) (using TLSv1 with cipher RC4-SHA (128/128 bits))\r
+       (No client certificate requested)\r
+       by olra.theworths.org (Postfix) with ESMTPS id E5C32429E41\r
+       for <notmuch@notmuchmail.org>; Mon, 27 Jun 2011 21:45:29 -0700 (PDT)\r
+Received: by bwg12 with SMTP id 12so4889638bwg.26\r
+       for <notmuch@notmuchmail.org>; Mon, 27 Jun 2011 21:45:28 -0700 (PDT)\r
+DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma;\r
+       h=domainkey-signature:from:to:cc:subject:date:message-id:x-mailer;\r
+       bh=bzx2mcLS+evnAO91u0xq5NbJLRyFElG1UB9sZJpF5Ug=;\r
+       b=FsJlv2oCniryyADOwv3p0nBV9r5J+dN+vH5aDEbl6Lo/EqlR+uXZ0pQb5s353zrFbB\r
+       Kas8wOxEvkPlxonkBKOMKpuqKt4aaNtA7s++or1tK0+7gc+voUve5s6tip6SQxbAlpdV\r
+       NM41/rP5tR1DVtcENWmt/87gcH/5wluA3X3uY=\r
+DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma;\r
+       h=from:to:cc:subject:date:message-id:x-mailer;\r
+       b=w214TOeO7/mAwx6chyn/a1g8/XMjfsHaYiT36ApZxJvNy3ZQ/KmEmJrIhjFjeDlNms\r
+       U6pa+8N0YCWxrq0LU3mszpnNYZfOFSy0yPC0tl/xoONF3zc89jgerq7xpPELzBM90Plk\r
+       6MoO/K9HhZtTot8yES+29c4BJ2Wd41Wv1zI0A=\r
+Received: by 10.204.46.18 with SMTP id h18mr106598bkf.31.1309236328449;\r
+       Mon, 27 Jun 2011 21:45:28 -0700 (PDT)\r
+Received: from localhost ([91.144.186.21])\r
+       by mx.google.com with ESMTPS id ag6sm4747985bkc.6.2011.06.27.21.45.27\r
+       (version=TLSv1/SSLv3 cipher=OTHER);\r
+       Mon, 27 Jun 2011 21:45:27 -0700 (PDT)\r
+From: Dmitry Kurochkin <dmitry.kurochkin@gmail.com>\r
+To: notmuch@notmuchmail.org\r
+Subject: [PATCH 01/10] test: fix argument order of test_expect_equal_file in\r
+       few tests\r
+Date: Tue, 28 Jun 2011 08:45:02 +0400\r
+Message-Id: <1309236311-2162-1-git-send-email-dmitry.kurochkin@gmail.com>\r
+X-Mailer: git-send-email 1.7.5.4\r
+X-BeenThere: notmuch@notmuchmail.org\r
+X-Mailman-Version: 2.1.13\r
+Precedence: list\r
+List-Id: "Use and development of the notmuch mail system."\r
+       <notmuch.notmuchmail.org>\r
+List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
+       <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
+List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
+List-Post: <mailto:notmuch@notmuchmail.org>\r
+List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
+List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
+       <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
+X-List-Received-Date: Tue, 28 Jun 2011 04:45:30 -0000\r
+\r
+Few Emacs tests had test_expect_equal_file arguments in the wrong\r
+order: the first argument should be the test output and the\r
+second one should be the expected.\r
+---\r
+ test/emacs |    4 ++--\r
+ 1 files changed, 2 insertions(+), 2 deletions(-)\r
+\r
+diff --git a/test/emacs b/test/emacs\r
+index 6f82b08..f4ff3f1 100755\r
+--- a/test/emacs\r
++++ b/test/emacs\r
+@@ -198,12 +198,12 @@ test_expect_equal_file OUTPUT EXPECTED\r
+ test_begin_subtest "Save attachment from within emacs using notmuch-show-save-attachments"\r
+ # save as archive to test that Emacs does not re-compress .gz\r
+ echo ./attachment1.gz | test_emacs '(notmuch-show "id:cf0c4d610911171136h1713aa59w9cf9aa31f052ad0a@mail.gmail.com") (notmuch-show-save-attachments)' > /dev/null 2>&1\r
+-test_expect_equal_file "$EXPECTED/attachment" attachment1.gz\r
++test_expect_equal_file attachment1.gz "$EXPECTED/attachment"\r
\r
+ test_begin_subtest "Save attachment from within emacs using notmuch-show-save-part"\r
+ # save as archive to test that Emacs does not re-compress .gz\r
+ echo ./attachment2.gz | test_emacs '(notmuch-show-save-part "id:cf0c4d610911171136h1713aa59w9cf9aa31f052ad0a@mail.gmail.com" 5)' > /dev/null 2>&1\r
+-test_expect_equal_file "$EXPECTED/attachment" attachment2.gz\r
++test_expect_equal_file attachment2.gz "$EXPECTED/attachment"\r
\r
+ test_begin_subtest "View raw message within emacs"\r
+ first_line=$(head -n1 $EXPECTED/raw-message-cf0c4d-52ad0a)\r
+-- \r
+1.7.5.4\r
+\r