gcm_daemon: Use lock file to prevent parallel execution
[gnucomo.git] / test / read_without_hostname
index de8cb28..8e25f96 100755 (executable)
@@ -22,11 +22,10 @@ then
    fi
    if [[ $result -eq 0 ]]
    then
-      GCM_LOG=`cat gcm_input.log`
-      echo $GCM_LOG
-      if [[ $GCM_LOG != "Can not determine the hostname where the message came from." ]]
+      result=2
+      if grep "Can not determine the hostname where the message came from." gcm_input.log
       then
-         result=2
+         result=0
       fi
    fi
    psql gnucomo_test -f ../src/database/destroy.sql -q