tests: run under Xvfb by default (if available) (#2951)

This shaves off two seconds of wall-clock time (10s → 8s).
This commit is contained in:
Michael Stapelberg
2017-10-13 00:18:49 -07:00
committed by GitHub
parent 28ca1e8529
commit 44a6efb5b0
3 changed files with 47 additions and 7 deletions

View File

@ -26,7 +26,7 @@ fi
# Try running the tests in parallel so that the common case (tests pass) is
# quick, but fall back to running them in sequence to make debugging easier.
if ! xvfb-run make check
if ! make check
then
xvfb-run ./testcases/complete-run.pl --parallel=1 || (cat latest/complete-run.log; false)
./testcases/complete-run.pl --parallel=1 || (cat latest/complete-run.log; false)
fi