From 3b90fa094020005206e6e6075ec1c98668a783a2 Mon Sep 17 00:00:00 2001
From: tpylak <tpylak>
Date: Fri, 18 Jan 2008 10:37:45 +0000
Subject: [PATCH] adapt integration-tests to Mac

SVN: 3630
---
 integration-tests/run.sh | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/integration-tests/run.sh b/integration-tests/run.sh
index a9fd083d94b..231f5bde075 100755
--- a/integration-tests/run.sh
+++ b/integration-tests/run.sh
@@ -452,7 +452,7 @@ function generate_test_data {
 function copy_test_data {
     local NAME=$1
     local DIR=$2
-    cp -a $TEST_DATA/$NAME $DIR
+    cp -RPp $TEST_DATA/$NAME $DIR
     clean_svn $DIR/$NAME
 }
 
@@ -486,7 +486,7 @@ function switch_sth {
     else
 	echo "Stopping $dir, displaying errors from the log"
 	if [ "`cat $dir/log/* | grep ERROR | tee -a $ERR_LOG`" != "" ]; then
-	    if [ $report_error .eq $TRUE ]; then
+	    if [ $report_error -eq $TRUE ]; then
 	        report_error $dir reported errors.
 	        cat $dir/log/* | grep ERROR >&2    
 	    fi
-- 
GitLab