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