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 CA2AC429E55 for ; Mon, 27 Jun 2011 21:45:50 -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 xnzkA11FSDE1 for ; Mon, 27 Jun 2011 21:45:49 -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 71C36421162 for ; Mon, 27 Jun 2011 21:45:41 -0700 (PDT) Received: by mail-bw0-f53.google.com with SMTP id 12so4889638bwg.26 for ; Mon, 27 Jun 2011 21:45:41 -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 :in-reply-to:references; bh=CDcgU5fdHp3WMIZFVedVa+Ku0+Yx920QD1lDH4RuU4o=; b=TQMs9UO/ifK0mTghvvuOX/r7+IEjOvy9NKfJ4dyLOygNz+KarOY3q/TDlN/1CdJjjC /NVpVA4zlBpjjqgwDCDT2xyGRH0sAUGaGQVvR59D8ti6YvK3oqT1hcfVYFQlf7D493hi I4NXPuSbqmLxM6Xn7lUWNmlYxD0NOQi2JsU8k= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references; b=k1rzL5U4ithfsEYDcaRRL2QSH+5Jhor/98Ca/ylzjvZ3SvnUMLCTq4nn9a4RRfutni mVlFYH5O6xa+xZq/WcP3FhwTUhEW2RnU9ym4XIaSD98aAiGlY5KhWlpVN1AIf84WAoAJ 8YaLjiHfMagPZOU58ug7nUYJTc8deRJQ19wj8= Received: by 10.204.26.215 with SMTP id f23mr5281858bkc.140.1309236341120; Mon, 27 Jun 2011 21:45:41 -0700 (PDT) Received: from localhost ([91.144.186.21]) by mx.google.com with ESMTPS id ek1sm4739592bkb.21.2011.06.27.21.45.40 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 27 Jun 2011 21:45:40 -0700 (PDT) From: Dmitry Kurochkin To: notmuch@notmuchmail.org Subject: [PATCH 06/10] test: remove some sed(1) calls in Emacs tests Date: Tue, 28 Jun 2011 08:45:07 +0400 Message-Id: <1309236311-2162-6-git-send-email-dmitry.kurochkin@gmail.com> X-Mailer: git-send-email 1.7.5.4 In-Reply-To: <1309236311-2162-1-git-send-email-dmitry.kurochkin@gmail.com> References: <1309236311-2162-1-git-send-email-dmitry.kurochkin@gmail.com> 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:51 -0000 Few Emacs tests used sed(1) to remove unexpected output in the beginning to avoid getting confused by messages such as "Parsing /home/cworth/.mailrc... done". This is no longer needed since tests are run in a temporary home directory instead of the user's one. So remove these sed(1) calls. --- test/emacs | 5 ----- 1 files changed, 0 insertions(+), 5 deletions(-) diff --git a/test/emacs b/test/emacs index 8f8b841..4592005 100755 --- a/test/emacs +++ b/test/emacs @@ -250,13 +250,10 @@ EOF test_expect_equal_file OUTPUT EXPECTED test_begin_subtest "Reply within emacs" -# We sed away everything before the ^From in the output to avoid getting -# confused by messages such as "Parsing /home/cworth/.mailrc... done" test_emacs '(notmuch-search "subject:\"testing message sent via SMTP\"") (notmuch-test-wait) (notmuch-search-reply-to-thread) (test-output)' -sed -i -ne '/^From/,$ p' OUTPUT sed -i -e 's/^In-Reply-To: <.*>$/In-Reply-To: /' OUTPUT cat <EXPECTED From: Notmuch Test Suite @@ -284,11 +281,9 @@ test_emacs '(notmuch-show-save-part "id:cf0c4d610911171136h1713aa59w9cf9aa31f052 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) test_emacs '(notmuch-show "id:cf0c4d610911171136h1713aa59w9cf9aa31f052ad0a@mail.gmail.com") (notmuch-show-view-raw-message) (test-output)' -sed -i -ne "/$first_line/,\$ p" OUTPUT test_expect_equal_file OUTPUT $EXPECTED/raw-message-cf0c4d-52ad0a test_begin_subtest "Hiding/showing signature in notmuch-show view" -- 1.7.5.4