Blame SOURCES/0008-Fix-a-bug-in-testdriver.patch

78a2f7
From 043a273e153c39c96d032639f5c42dadf7317ae2 Mon Sep 17 00:00:00 2001
78a2f7
From: Jakub Filak <jfilak@redhat.com>
78a2f7
Date: Sat, 26 Oct 2013 21:14:40 +0200
78a2f7
Subject: [PATCH 08/39] Fix a bug in testdriver
78a2f7
78a2f7
Related to rhbz#1055581
78a2f7
78a2f7
Signed-off-by: Jakub Filak <jfilak@redhat.com>
78a2f7
---
78a2f7
 test/testdriver | 2 +-
78a2f7
 1 file changed, 1 insertion(+), 1 deletion(-)
78a2f7
78a2f7
diff --git a/test/testdriver b/test/testdriver
78a2f7
index 72ac41e..9e5c2b8 100644
78a2f7
--- a/test/testdriver
78a2f7
+++ b/test/testdriver
78a2f7
@@ -17,7 +17,7 @@ fi
78a2f7
 
78a2f7
 TMP_RESULT=`mktemp /tmp/abrt_java_connector.XXXXXXX`
78a2f7
 
78a2f7
-if [ 1 -eq "$5" ]; then
78a2f7
+if [ -n "$5" ] && [ 1 -eq $5 ]; then
78a2f7
     tac $4 | awk \
78a2f7
 'BEGIN             { main = 0 }
78a2f7
 /^(Unc|C)aught/    { if (main == 1) { print $0; main = 0 } }
78a2f7
-- 
78a2f7
1.8.3.1
78a2f7