From d77b27c5562d4f7624271cbd1a4c5b308d2addbd Mon Sep 17 00:00:00 2001
From: Friedemann Kleint <Friedemann.Kleint@nokia.com>
Date: Thu, 26 Jul 2012 16:35:31 +0200
Subject: [PATCH] test2task.pl: Mark XPASS as an error as well.

Change-Id: I1e757c77249d25edccb8a8688ccc259383cb210e
Reviewed-by: hjk <qthjk@ovi.com>
Reviewed-by: Tobias Hunger <tobias.hunger@nokia.com>
---
 scripts/test2tasks.pl | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/scripts/test2tasks.pl b/scripts/test2tasks.pl
index 88fa2f46c7a..fbfbc1fc76b 100755
--- a/scripts/test2tasks.pl
+++ b/scripts/test2tasks.pl
@@ -110,7 +110,8 @@ while (my $line = <STDIN> ) {
             $fullFileName = $fileHash{$fileName};
             $fullFileName = $fileName unless defined $fullFileName;
         }
-        my $type = index($lastLine, 'FAIL') == 0 ? 'err' : 'unknown';
+        my $type = index($lastLine, 'FAIL') == 0 || index($lastLine, 'XPASS') == 0 ?
+                   'err' : 'unknown';
         print $fullFileName, "\t", $line, "\t", $type, "\t", $lastLine,"\n";
         $failCount++;
     } else {
-- 
GitLab