diff options
author | Friedemann Kleint <Friedemann.Kleint@nokia.com> | 2011-12-20 15:37:56 +0100 |
---|---|---|
committer | Friedemann Kleint <Friedemann.Kleint@nokia.com> | 2011-12-20 15:39:44 +0100 |
commit | 397069c6405011a122302da76ab5cc836a10aa56 (patch) | |
tree | c237b351e6b47a468a625eb866a61cf9e4f8c981 | |
parent | fb6784281350a6ff6ef4884dd108ceb78e29dc26 (diff) |
test2task.pl: Report FAIL and FATAL on stderr.
Change-Id: Iaa6e31f8d76537ccf0e79bf2395b75e22932c304
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
-rwxr-xr-x | scripts/test2tasks.pl | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/scripts/test2tasks.pl b/scripts/test2tasks.pl index 7e60fdc12d..437e2889b0 100755 --- a/scripts/test2tasks.pl +++ b/scripts/test2tasks.pl @@ -36,6 +36,8 @@ find({ wanted => \& handleFile}, '.'); # from the above lines as task entry. my $lastLine = ''; +my ($failCount, $fatalCount) = (0, 0); + while (my $line = <STDIN> ) { chomp($line); # --- Continuation line? @@ -59,6 +61,14 @@ while (my $line = <STDIN> ) { } my $type = index($lastLine, 'FAIL') == 0 ? 'err' : 'unknown'; print $fullFileName, "\t", $line, "\t", $type, "\t", $lastLine,"\n"; + $failCount++; + } else { + if (index($line, 'QFATAL') == 0 || index($line, 'Received a fatal error.') >= 0) { + print STDERR $line,"\n"; + $fatalCount++; + } } $lastLine = $line; } + +print STDERR 'Done, FAIL: ',$failCount, ', FATAL: ',$fatalCount, "\n"; |