From: Michael Stapelberg Date: Sat, 17 Dec 2011 11:20:32 +0000 (+0000) Subject: complete-run: automatically display test output when running a single test X-Git-Tag: 4.2~187 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=69b143e5ca58b448331fb1f0fb6aa7ef31dd9b31;p=i3%2Fi3 complete-run: automatically display test output when running a single test --- diff --git a/testcases/complete-run.pl b/testcases/complete-run.pl index 3b2bfc4f..cb7b5c8c 100755 --- a/testcases/complete-run.pl +++ b/testcases/complete-run.pl @@ -175,6 +175,14 @@ say 'The slowest tests are:'; printf("\t%s with %.2f seconds\n", $_, $timings{$_}) for @slowest[0..($#slowest > 4 ? 4 : $#slowest)]; +# When we are running precisely one test, print the output. Makes developing +# with a single testcase easier. +if ($numtests == 1) { + say ''; + say 'Test output:'; + say StartXDummy::slurp($logfile); +} + END { cleanup() } exit 0;