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