debian/rules: run tests only once, with verbose output
commit5abd8217f57399ba2cf43934c88a9183a4054f5e
authorJonathan Nieder <jrnieder@gmail.com>
Thu, 29 Dec 2016 18:00:08 +0000 (29 10:00 -0800)
committerJonathan Nieder <jrnieder@gmail.com>
Wed, 21 Jun 2017 21:49:22 +0000 (21 14:49 -0700)
treeb478bd904a8cd361980d878d0afbf2b03837eb66
parent14952ab16461f8b01987c7e05269658c4f7ceeb9
debian/rules: run tests only once, with verbose output

To make build logs easier to read, debian/rules runs tests once with
terse output and then runs tests again to reproduce any failures with
more verbose output.  The idea is that in the normal case the verbose
output from tests is added noise that is distracting when reading
build logs.

However, that approach has a few downsides for automated builds:

 * since it runs tests twice on failure, it can mask flaky tests
 * if a test hangs and the build times out, there is no log describing
   what happened except for the name of the test
 * it is hard to compare logs from successful builds to unsuccessful
   ones to track down a failure

An analogous situation exists in the build rules: the Debian build
turns on V=1 to ensure the build log continues all commands used to
build the source code, not just failed commands.

Do the analogous thing for tests: use verbose output in the first
place and these complexities and pitfalls go away.

Signed-off-by: Jonathan Nieder <jrnieder@gmail.com>
debian/changelog
debian/rules