]> mj.ucw.cz Git - libucw.git/commitdiff
Tester: Always print test numbers
authorMartin Mares <mj@ucw.cz>
Wed, 8 Jul 2015 20:47:43 +0000 (22:47 +0200)
committerMartin Mares <mj@ucw.cz>
Wed, 8 Jul 2015 20:47:43 +0000 (22:47 +0200)
They help to locate the right temporary files.

build/tester

index da4fab3b7587a5cbcedb8b7186fabc78929a1e09..da452370ae31c4957e4fbe891e9b56a71efb6183 100755 (executable)
@@ -84,8 +84,10 @@ my $errors = 0;
 my $prev_run = undef;
 TEST: foreach $tt (@tests) {
        $i++;
 my $prev_run = undef;
 TEST: foreach $tt (@tests) {
        $i++;
-       my $name = $tt->{'Name'} || $i;
-       print "Test $name: ";
+       my $name = $tt->{'Name'};
+       printf "Test %03d", $i;
+       print " [$name]" if defined $name;
+       print ": ";
        $run = ($tt->{'Run'} || $prev_run) or die "Don't know what to run";
        $prev_run = $run;
 
        $run = ($tt->{'Run'} || $prev_run) or die "Don't know what to run";
        $prev_run = $run;