Enable optional, verbose test debug output.

This commit is contained in:
Colin Kuskie 2010-06-24 10:51:36 -07:00
parent eafb1679e5
commit d6be3a1182

View file

@ -123,7 +123,7 @@ sub _initSession {
my ($label, $table) = @checkCount[$i, $i+1];
my $quant = $session->db->quickScalar('SELECT COUNT(*) FROM ' . $table);
my $delta = $quant - $initCounts{$table};
if ($delta) {
if ($delta || $ENV{WEBGUI_TEST_DEBUG} eq 2) {
$CLASS->builder->diag(sprintf '%-24s: %4d (delta %+d)', $label, $quant, $delta);
}
}