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