Make REGRESS_LOG more useful again
authortb <tb@openbsd.org>
Sun, 24 Sep 2023 08:28:20 +0000 (08:28 +0000)
committertb <tb@openbsd.org>
Sun, 24 Sep 2023 08:28:20 +0000 (08:28 +0000)
Enabling REGRESS_FAIL_EARLY made REGRESS_LOG error out at the first error,
which is pointless. So default to no if REGRESS_LOG is set unless the user
explicitly enabled it.

Requested by claudio
ok bluhm

share/mk/bsd.regress.mk

index 1ab9e59..3aab0cb 100644 (file)
@@ -1,4 +1,4 @@
-# $OpenBSD: bsd.regress.mk,v 1.26 2023/09/15 07:13:35 tb Exp $
+# $OpenBSD: bsd.regress.mk,v 1.27 2023/09/24 08:28:20 tb Exp $
 # Documented in bsd.regress.mk(5)
 
 # No man pages for regression tests.
@@ -21,6 +21,9 @@ all: regress
 REGRESS_LOG?=/dev/null
 REGRESS_SKIP_TARGETS?=
 REGRESS_SKIP_SLOW?=no
+.if ${REGRESS_LOG} != "/dev/null"
+REGRESS_FAIL_EARLY?=no
+.endif
 REGRESS_FAIL_EARLY?=yes
 
 .if ! ${REGRESS_LOG:M/*}