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 5D0626DE1455 for ; Mon, 20 May 2019 16:25:40 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at cworth.org X-Spam-Flag: NO X-Spam-Score: -0.17 X-Spam-Level: X-Spam-Status: No, score=-0.17 tagged_above=-999 required=5 tests=[AWL=0.031, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, 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 6_EDpGoyP3zV for ; Mon, 20 May 2019 16:25:39 -0700 (PDT) Received: from che.mayfirst.org (che.mayfirst.org [162.247.75.118]) by arlo.cworth.org (Postfix) with ESMTPS id B64AC6DE1454 for ; Mon, 20 May 2019 16:25:39 -0700 (PDT) DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/simple; d=fifthhorseman.net; i=@fifthhorseman.net; q=dns/txt; s=2019; t=1558394738; h=from : to : subject : date : message-id : mime-version : content-transfer-encoding : from; bh=j3p9/Rg1bZr8QpcVSxREuwnM7yZyD69JW6zv5Bl/9QI=; b=KBqN/ksglMVUdupGzFbNNu/BjCna7EgaFUuAhPAMpOOxIpK8b8lOfF/A 0rAlPgIn/YPJPhVn9ez+m8jZMMsgAw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=fifthhorseman.net; i=@fifthhorseman.net; q=dns/txt; s=2019rsa; t=1558394738; h=from : to : subject : date : message-id : mime-version : content-transfer-encoding : from; bh=j3p9/Rg1bZr8QpcVSxREuwnM7yZyD69JW6zv5Bl/9QI=; b=fjV0XY9akdGlrQWtOxLWaJxKBg0ud50pVCApaB0EBTf7kJQl+X5UfqS1 Fc5GsYx13fvB3bjPwvP+i0UorX1GjJ1KQExTTx9YuYAycEQHrsKLY2f1CX i8yrZfWTPYNofEEPa+QmtGBBS8YsPyXb2ae3RRn6FQYYD+/iXN2PfEwjo5 eKE6QVoIQaSJ7QsqTOGsmhxtl9OnmmvqYvW7Ah/hiYAJ7d22K39OpH/xe4 Ji0r24UgM4ugRAMrQZhczmXc/L+4msZV83aW9e8wHsqfGfLaDPUXKiFJ1f Y3jyqoTk8b6mWMl+RfqFXxsHE0gscpZy1KDj7DgP9tWx9S8yaxajYQ== Received: from fifthhorseman.net (unknown [38.109.115.130]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by che.mayfirst.org (Postfix) with ESMTPSA id 57BB9F99D for ; Mon, 20 May 2019 19:25:38 -0400 (EDT) Received: by fifthhorseman.net (Postfix, from userid 1000) id E4180201C0; Mon, 20 May 2019 19:25:35 -0400 (EDT) From: Daniel Kahn Gillmor To: Notmuch Mail Subject: [PATCH] test: allow disabling timeout with NOTMUCH_TEST_TIMEOUT=0 Date: Mon, 20 May 2019 19:25:35 -0400 Message-Id: <20190520232535.4904-1-dkg@fifthhorseman.net> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.29 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, 20 May 2019 23:25:40 -0000 Tests appear to be hanging when run under GNU timeout on debian stretch. To aid in diagnosing this or similar problems, it's handy to be able to disable timeout from the command line at will. Signed-off-by: Daniel Kahn Gillmor --- test/notmuch-test | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/test/notmuch-test b/test/notmuch-test index bbc2dc31..126c28d4 100755 --- a/test/notmuch-test +++ b/test/notmuch-test @@ -33,8 +33,13 @@ rm -rf $NOTMUCH_BUILDDIR/test/test-results # Test for timeout utility if command -v timeout >/dev/null; then TEST_TIMEOUT=${NOTMUCH_TEST_TIMEOUT:-2m} - TEST_TIMEOUT_CMD="timeout $TEST_TIMEOUT" - echo "INFO: using $TEST_TIMEOUT timeout for tests" + if [ "$TEST_TIMEOUT" = 0 ]; then + TEST_TIMEOUT_CMD="" + echo "INFO: timeout disabled" + else + TEST_TIMEOUT_CMD="timeout $TEST_TIMEOUT" + echo "INFO: using $TEST_TIMEOUT timeout for tests" + fi else TEST_TIMEOUT_CMD="" fi -- 2.20.1