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