From d35d3fc7bf40ac233dc365c41b96301bc1cc524b Mon Sep 17 00:00:00 2001 From: David Bremner Date: Mon, 19 Jan 2015 08:38:05 +0100 Subject: [PATCH] Re: [PATCH] test: prepare test-lib.sh for possible test system debug session --- 40/18913a50146232aca2d319ba115e1a1ef3869d | 67 +++++++++++++++++++++++ 1 file changed, 67 insertions(+) create mode 100644 40/18913a50146232aca2d319ba115e1a1ef3869d diff --git a/40/18913a50146232aca2d319ba115e1a1ef3869d b/40/18913a50146232aca2d319ba115e1a1ef3869d new file mode 100644 index 000000000..ef5dbe28c --- /dev/null +++ b/40/18913a50146232aca2d319ba115e1a1ef3869d @@ -0,0 +1,67 @@ +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 05C3B431FB6 + for ; Sun, 18 Jan 2015 23:39:19 -0800 (PST) +X-Virus-Scanned: Debian amavisd-new at olra.theworths.org +X-Spam-Flag: NO +X-Spam-Score: 2.438 +X-Spam-Level: ** +X-Spam-Status: No, score=2.438 tagged_above=-999 required=5 + tests=[DNS_FROM_AHBL_RHSBL=2.438] 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 JSyPhXZxphwb for ; + Sun, 18 Jan 2015 23:39:16 -0800 (PST) +Received: from mx.xen14.node3324.gplhost.com (gitolite.debian.net + [87.98.215.224]) + (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits)) + (No client certificate requested) + by olra.theworths.org (Postfix) with ESMTPS id 19223431FAF + for ; Sun, 18 Jan 2015 23:39:16 -0800 (PST) +Received: from remotemail by mx.xen14.node3324.gplhost.com with local (Exim + 4.80) (envelope-from ) + id 1YD6ug-0002DE-RM; Mon, 19 Jan 2015 07:38:18 +0000 +Received: (nullmailer pid 15584 invoked by uid 1000); Mon, 19 Jan 2015 + 07:38:05 -0000 +From: David Bremner +To: Tomi Ollila , notmuch@notmuchmail.org +Subject: Re: [PATCH] test: prepare test-lib.sh for possible test system debug + session +In-Reply-To: <1411322780-11374-1-git-send-email-tomi.ollila@iki.fi> +References: <1411322780-11374-1-git-send-email-tomi.ollila@iki.fi> +User-Agent: Notmuch/0.19+27~g29ffde4 (http://notmuchmail.org) Emacs/24.4.1 + (x86_64-pc-linux-gnu) +Date: Mon, 19 Jan 2015 08:38:05 +0100 +Message-ID: <87k30jrzj6.fsf@maritornes.cs.unb.ca> +MIME-Version: 1.0 +Content-Type: text/plain +Cc: tomi.ollila@iki.fi +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: Mon, 19 Jan 2015 07:39:19 -0000 + +Tomi Ollila writes: + +> When something in tests fails one possibility to test is to run +> the test script as `bash -x TXXX-testname.sh`. As stderr (fd 2) was +> redirected to separate file during test execution also this set -x +> (xtrace) output would also go there. +> test-lib.sh saves the stderr to fd 7 from where it can be restored, +> and bash has BASH_XTRACEFD variable, which is now given the same value +> 7, making bash to output all xtrade information (consistently) + +pushed. + +d -- 2.26.2