From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id qcSuBjYqBWBqXgAA0tVLHw (envelope-from ) for ; Mon, 18 Jan 2021 06:27:02 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id MNr4ATYqBWD2NwAAbx9fmQ (envelope-from ) for ; Mon, 18 Jan 2021 06:27:02 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id B06D39402C2 for ; Mon, 18 Jan 2021 06:27:01 +0000 (UTC) Received: from localhost ([::1]:52808 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l1O0C-0006o4-NI for larch@yhetil.org; Mon, 18 Jan 2021 01:27:00 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:59652) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l1NzI-0006mf-0z for guix-patches@gnu.org; Mon, 18 Jan 2021 01:26:04 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:34613) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1l1NzH-0001Ck-Pt for guix-patches@gnu.org; Mon, 18 Jan 2021 01:26:03 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1l1NzH-0003tc-Kd for guix-patches@gnu.org; Mon, 18 Jan 2021 01:26:03 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#45948] [PATCH 3/5] build: test-driver.scm: Enable colored test results by default. Resent-From: Maxim Cournoyer Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 18 Jan 2021 06:26:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 45948 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 45948@debbugs.gnu.org Received: via spool by 45948-submit@debbugs.gnu.org id=B45948.161095113314901 (code B ref 45948); Mon, 18 Jan 2021 06:26:03 +0000 Received: (at 45948) by debbugs.gnu.org; 18 Jan 2021 06:25:33 +0000 Received: from localhost ([127.0.0.1]:46153 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l1Nyn-0003sB-8C for submit@debbugs.gnu.org; Mon, 18 Jan 2021 01:25:33 -0500 Received: from mail-qv1-f53.google.com ([209.85.219.53]:41447) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l1Nyi-0003rO-FT for 45948@debbugs.gnu.org; Mon, 18 Jan 2021 01:25:31 -0500 Received: by mail-qv1-f53.google.com with SMTP id h16so7038288qvu.8 for <45948@debbugs.gnu.org>; Sun, 17 Jan 2021 22:25:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=kfLiN+P6E3P5dDlIzdp5yUV5X6s1u1cWIy9n5+yzMpc=; b=YgX2cEdryyv8FsxLR8VjkKYfHP6yDnoPmFrumW1Dckuk48vY6QSs5EtHSLf9NSZReP Zm/8uiHP7EmnVfFS2n606aA+iJ+jfzq/7Wi9oxrVbs7fIoxacOb6sPc5Z3Vwz/lPg/72 6KpI6qnDJlBebDYhoPRIqP1Elx5YzV8xDg12zq04ooZXgrIF86HO287Opy0TYVh3BevV Ax2taqUl0ma46yEZEhbtWpw7ovz70+kcuanGh8QCPbuVFApu2OBuS77Ku5JYVXz9lNsb hT0q1Pka7PUnFDwWJCUNYrZMg/FrJNfb891Y5A71RI+Kz4RGeNnlVqepJTr10MWCsJy2 cOag== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=kfLiN+P6E3P5dDlIzdp5yUV5X6s1u1cWIy9n5+yzMpc=; b=mOUje191r2REn4E/yKfQgmJ9rXu2t/QOCCu+5rfd/WNQkGOYNMsCf+f2EctjIdvxzX U9E/i0dJijiPnN20ePXw/91AeG8uJEVW5jvYAIPVbGagrC0rwh7umL0piWe8tgmsX9cH 57i4eGurI4suTeEnhJOhrxbd7CZJ/s5vLX20b/QFD+yNiNrtV4MvmWM/nZeMiCQ5O/2Z eqMkFH86XGv46kjTuaK3AT+/Phx3sAt5PiAHwA97IZvWNoPVKCSyr4j/0QnpoVRG3w7J +GO1hgdZMKi4PO7Csf6nUz6b9sdOCWMeuKdrACplD7aqTB3udxyzms3FUt/XUlPINNij 9/pg== X-Gm-Message-State: AOAM532X7PKt+GKl65cSa3O7YTqUztog2WV2gMuprSSRu2g6TG55Qi/X SpL3M32wtx0hSNgzPwFSW6p2TgO9tiM= X-Google-Smtp-Source: ABdhPJwjjzv3nv7hvZLjGlUjoyYOQyxpZf9recxX0hcZis/ZbicobtUFBpp8wOCcysaZ/m8cR0ACTQ== X-Received: by 2002:a0c:fa11:: with SMTP id q17mr22585150qvn.55.1610951122782; Sun, 17 Jan 2021 22:25:22 -0800 (PST) Received: from localhost.localdomain (dsl-149-228.b2b2c.ca. [66.158.149.228]) by smtp.gmail.com with ESMTPSA id k187sm10266726qkc.74.2021.01.17.22.25.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 17 Jan 2021 22:25:22 -0800 (PST) From: Maxim Cournoyer Date: Mon, 18 Jan 2021 01:24:58 -0500 Message-Id: <20210118062501.27022-3-maxim.cournoyer@gmail.com> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20210118062501.27022-1-maxim.cournoyer@gmail.com> References: <20210118062501.27022-1-maxim.cournoyer@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: 2.74 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20161025 header.b=YgX2cEdr; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Queue-Id: B06D39402C2 X-Spam-Score: 2.74 X-Migadu-Scanner: scn1.migadu.com X-TUID: DKrsx+1oQpon The Automake parallel test harness does its own smart detection of the terminal color capability and always provides the --color-tests argument to the driver. This change defaults the --color-tests argument to true when the test driver is run on its own (not via Automake). * build-aux/test-driver.scm (main): Set the default value of the --color-tests argument to true when it's not explicitly provided. --- build-aux/test-driver.scm | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/build-aux/test-driver.scm b/build-aux/test-driver.scm index 5891631da6..767a9fb25d 100644 --- a/build-aux/test-driver.scm +++ b/build-aux/test-driver.scm @@ -163,14 +163,17 @@ void port, which means no TRS output is logged." (let ((log (and=> (option 'log-file #f) (cut open-file <> "w0"))) (trs (and=> (option 'trs-file #f) (cut open-file <> "wl"))) (out (duplicate-port (current-output-port) "wl")) - (test-name (option 'test-name #f))) + (test-name (option 'test-name #f)) + (color-tests (if (assoc 'color-tests opts) + (option->boolean opts 'color-tests) + #t))) (when log (redirect-port log (current-output-port)) (redirect-port log (current-warning-port)) (redirect-port log (current-error-port))) (test-with-runner (test-runner-gnu test-name - #:color? (option->boolean opts 'color-tests) + #:color? color-tests #:brief? (option->boolean opts 'brief) #:out-port out #:trs-port trs) (load-from-path test-name)) -- 2.29.2