1 Return-Path: <pieter@praet.org>
\r
2 X-Original-To: notmuch@notmuchmail.org
\r
3 Delivered-To: notmuch@notmuchmail.org
\r
4 Received: from localhost (localhost [127.0.0.1])
\r
5 by olra.theworths.org (Postfix) with ESMTP id E69ED429E28
\r
6 for <notmuch@notmuchmail.org>; Thu, 12 Jan 2012 09:18:48 -0800 (PST)
\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org
\r
11 X-Spam-Status: No, score=-0.7 tagged_above=-999 required=5
\r
12 tests=[RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled
\r
13 Received: from olra.theworths.org ([127.0.0.1])
\r
14 by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)
\r
15 with ESMTP id H5ISnD+pcvzj for <notmuch@notmuchmail.org>;
\r
16 Thu, 12 Jan 2012 09:18:48 -0800 (PST)
\r
17 Received: from mail-ww0-f45.google.com (mail-ww0-f45.google.com
\r
18 [74.125.82.45]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client
\r
19 certificate requested) by olra.theworths.org (Postfix) with ESMTPS id
\r
20 5B358431FB6 for <notmuch@notmuchmail.org>; Thu, 12 Jan 2012 09:18:48 -0800
\r
22 Received: by wgbds11 with SMTP id ds11so1956633wgb.2
\r
23 for <notmuch@notmuchmail.org>; Thu, 12 Jan 2012 09:18:47 -0800 (PST)
\r
24 Received: by 10.180.99.225 with SMTP id et1mr3182025wib.2.1326388727213;
\r
25 Thu, 12 Jan 2012 09:18:47 -0800 (PST)
\r
26 Received: from localhost ([109.131.126.209])
\r
27 by mx.google.com with ESMTPS id u5sm6508457wbm.2.2012.01.12.09.18.46
\r
28 (version=TLSv1/SSLv3 cipher=OTHER);
\r
29 Thu, 12 Jan 2012 09:18:46 -0800 (PST)
\r
30 From: Pieter Praet <pieter@praet.org>
\r
31 To: Dmitry Kurochkin <dmitry.kurochkin@gmail.com>
\r
32 Subject: [PATCH] test: don't bail out of `run_emacs' too early when missing
\r
34 Date: Thu, 12 Jan 2012 18:16:59 +0100
\r
35 Message-Id: <1326388619-17422-1-git-send-email-pieter@praet.org>
\r
36 X-Mailer: git-send-email 1.7.8.1
\r
37 In-Reply-To: <87d3aolu61.fsf@praet.org>
\r
38 References: <87d3aolu61.fsf@praet.org>
\r
39 Cc: Notmuch Mail <notmuch@notmuchmail.org>
\r
40 X-BeenThere: notmuch@notmuchmail.org
\r
41 X-Mailman-Version: 2.1.13
\r
43 List-Id: "Use and development of the notmuch mail system."
\r
44 <notmuch.notmuchmail.org>
\r
45 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,
\r
46 <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>
\r
47 List-Archive: <http://notmuchmail.org/pipermail/notmuch>
\r
48 List-Post: <mailto:notmuch@notmuchmail.org>
\r
49 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>
\r
50 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,
\r
51 <mailto:notmuch-request@notmuchmail.org?subject=subscribe>
\r
52 X-List-Received-Date: Thu, 12 Jan 2012 17:18:49 -0000
\r
54 When running the Emacs tests in verbose mode, only the first missing
\r
55 prereq is reported because the `run_emacs' function is short-circuited
\r
59 emacs: Testing emacs interface
\r
60 missing prerequisites: [0] emacs(1)
\r
61 skipping test: [0] Basic notmuch-hello view in emacs
\r
62 SKIP [0] Basic notmuch-hello view in emacs
\r
65 This can lead to situations reminiscent of "dependency hell", so instead
\r
66 of returning based on each individual `test_require_external_prereq's exit
\r
67 status, we now do so by checking $test_subtest_missing_external_prereqs_:
\r
70 emacs: Testing emacs interface
\r
71 missing prerequisites: [0] dtach(1) emacs(1) emacsclient(1)
\r
72 skipping test: [0] Basic notmuch-hello view in emacs
\r
73 SKIP [0] Basic notmuch-hello view in emacs
\r
76 Also add missing prereq for dtach(1).
\r
79 test/test-lib.sh | 6 ++++--
\r
80 1 files changed, 4 insertions(+), 2 deletions(-)
\r
82 diff --git a/test/test-lib.sh b/test/test-lib.sh
\r
83 index 82767c0..6ec3882 100644
\r
84 --- a/test/test-lib.sh
\r
85 +++ b/test/test-lib.sh
\r
86 @@ -907,8 +907,10 @@ EOF
\r
89 # test dependencies beforehand to avoid the waiting loop below
\r
90 - test_require_external_prereq emacs || return
\r
91 - test_require_external_prereq emacsclient || return
\r
92 + test_require_external_prereq dtach
\r
93 + test_require_external_prereq emacs
\r
94 + test_require_external_prereq emacsclient
\r
95 + test -z "$test_subtest_missing_external_prereqs_" || return
\r
97 if [ -z "$EMACS_SERVER" ]; then
\r
98 server_name="notmuch-test-suite-$$"
\r