File: 05_testsuite.log.patch

package info (click to toggle)
mailfromd 9.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 11,512 kB
  • sloc: ansic: 56,882; sh: 22,979; yacc: 4,130; lex: 1,428; makefile: 928; lisp: 488; awk: 393; perl: 319; sed: 25
file content (17 lines) | stat: -rw-r--r-- 559 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
From: Roland Rosenfeld <roland@debian.org>
Date: Mon, 13 Oct 2025 18:18:02 +0200
Forwarded: not-needed
Subject: Write testsuite.log to stdout on failure
 This simplifies debugging in CI workflows, when testsuite fails

--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -236,7 +236,7 @@ clean-local:
 	@test ! -f $(TESTSUITE) || $(SHELL) $(TESTSUITE) --clean
 
 check-local: atconfig atlocal $(TESTSUITE)
-	@$(SHELL) $(TESTSUITE)
+	@$(SHELL) $(TESTSUITE) || (cat testsuite.log && exit 1)
 
 # Run the test suite on the *installed* tree.
 #installcheck-local: