Procházet zdrojové kódy

build: Make test suite errors fatal again

We need to check in the aggregated results if any test had any problem,
and die accordingly.

Regression introduced in commit 34b26c7db232b300991df5fb6f52707b381df28f.

Closes: #746331
Guillem Jover před 12 roky
rodič
revize
5daf50d5e4
2 změnil soubory, kde provedl 3 přidání a 1 odebrání
  1. 2 1
      check.am
  2. 1 0
      debian/changelog

+ 2 - 1
check.am

@@ -17,7 +17,8 @@ TEST_RUNNER = '\
 	    verbosity => $(TEST_VERBOSE), \
 	    failures => 1, \
 	}); \
-	$$harness->runtests(@ARGV);'
+	my $$aggregate = $$harness->runtests(@ARGV); \
+	die "FAIL: test suite has errors\n" if $$aggregate->has_errors;'
 
 check-clean:
 	[ -z "$(test_tmpdir)" ] || rm -fr $(test_tmpdir)

+ 1 - 0
debian/changelog

@@ -18,6 +18,7 @@ dpkg (1.17.9) UNRELEASED; urgency=low
     grows up or down), and we are compiling with -fstack-protector anyway.
   * Mark the command_get_pager() tests on a tty as TODO for now, so that
     we do not get failures on build daemons.
+  * Make test suite errors abort the build again. Closes: #746331
 
   [ Updated scripts translations ]
   * French (Steve Petruzzello). Closes: #746350