From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from localhost (localhost [127.0.0.1]) by arlo.cworth.org (Postfix) with ESMTP id 8F7876DE012F for ; Mon, 14 Nov 2016 05:49:34 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at cworth.org X-Spam-Flag: NO X-Spam-Score: 0.988 X-Spam-Level: X-Spam-Status: No, score=0.988 tagged_above=-999 required=5 tests=[AWL=0.858, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001] autolearn=disabled Received: from arlo.cworth.org ([127.0.0.1]) by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id bDkr8Fx88Yb1 for ; Mon, 14 Nov 2016 05:49:34 -0800 (PST) Received: from mail-wm0-f65.google.com (mail-wm0-f65.google.com [74.125.82.65]) by arlo.cworth.org (Postfix) with ESMTPS id 9F6096DE00C5 for ; Mon, 14 Nov 2016 05:49:33 -0800 (PST) Received: by mail-wm0-f65.google.com with SMTP id u144so15488962wmu.0 for ; Mon, 14 Nov 2016 05:49:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=m8WitmDi5uQI2xzZiaOcJQhn/9NDf9/hJo/Urn/r3Mc=; b=LVPieplyONhedEEDz7JT9jWWGqQptXpnZOdkLJI74MCmJg9GrHIFmoC8/WbnupKpH0 zQbmYYKRtuRkLPM4xvG5uLxA+S7JVgKhuCXttE6GlUr+Oaa2bjK+a+M4eE1NR67/KRaM tGAK7fb01pwFXpFveuNkB/qnRfRzuqMJaapEs3JaWqXMRaRbUIE/pkE1Zj2AhklkTACQ zCQRXYdykFP+gIbdUXru6Fv/lrpGbeAQLGxdDsXjbkFyRg510kqaD6yC2Tt2NrvP7acg mPxFxQSxdjS32uLR8/i9XgRkGNhG9Lbc0TqhGKcxzLp38QADsmV9L/10Mj846uzgCkI0 ZCkA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=m8WitmDi5uQI2xzZiaOcJQhn/9NDf9/hJo/Urn/r3Mc=; b=D5SFRkKguqZEdCj2OdCEtBExvoC3gxIBBkbmoxeXpg56zGl3uacoRMcNRB9Z4NFgim UnGe7QA8KDQDN1VhbK3GFwADuVofwsgzpQUTbVa65VDY53+sLvpZhs0hEpdAGSqmCP9C ShVrNHZbaNrbeCIE65QqklwciWnNUb0uF5G7NExS0ZVRlq4GkmMG1f17tqdaYa4VQ6Am NeyPzQcudrvMn1JUaDODbpDes1j+2WYETTjKUU+jzpY2fNtJafioT2iuoO/v1z5rLMpw NQo94DkPe0jQ8pBOeH2yxzI4D2RpoNTHig7QN5ItPdsucQH9blSEc5UjLbpCFcicomHN W8DQ== X-Gm-Message-State: ABUngvdqRG/6XLvfwiu0OK/IBW/IL+QEjXHUqS5/l3JSoIS0wB0Whhr3dvGcuIFOWb4ZUQ== X-Received: by 10.194.18.196 with SMTP id y4mr20288127wjd.73.1479131371607; Mon, 14 Nov 2016 05:49:31 -0800 (PST) Received: from localhost ([138.37.179.55]) by smtp.gmail.com with ESMTPSA id l74sm4049401wmg.2.2016.11.14.05.49.31 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 14 Nov 2016 05:49:31 -0800 (PST) From: Mark Walters To: notmuch@notmuchmail.org Subject: [PATCH] Test: fix draft test for emacs23 Date: Mon, 14 Nov 2016 13:49:28 +0000 Message-Id: <1479131368-18545-1-git-send-email-markwalters1009@gmail.com> X-Mailer: git-send-email 2.1.4 X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.22 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: Mon, 14 Nov 2016 13:49:34 -0000 emacs24 and emacs23 have different secure tag defaults: in particular, mml-secure-message-sign only signs the part on emacs23 but the whole message on emacs24. This difference makes one of the draft tests fail (which causes a cascade of later failures) on emacs23. It seems that travis uses emacs23 so it is useful to fix this. We do this by forcing the whole message to be signed in either case -- the code snippet is extracted from mml-secure-message-sign on emacs24. --- The main thing to note with this is that the motivation for fixing is that travis seems to use emacs23. Best wishes Mark test/T630-emacs-draft.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/T630-emacs-draft.sh b/test/T630-emacs-draft.sh index 46fc356..cd9e33a 100755 --- a/test/T630-emacs-draft.sh +++ b/test/T630-emacs-draft.sh @@ -32,7 +32,9 @@ test_begin_subtest "Saving a signed draft adds header" test_emacs '(notmuch-mua-mail) (message-goto-subject) (insert "draft-test-0003") - (mml-secure-message-sign) + ;; We would use (mml-secure-message-sign) but on emacs23 + ;; that only signs the part, not the whole message. + (mml-secure-message mml-secure-method '\''sign) (notmuch-draft-save) (test-output)' header_count=$(notmuch show --format=raw subject:draft-test-0003 | grep -c ^X-Notmuch-Emacs-Secure) -- 2.1.4