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

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