LRN: Fix test_dht_tools.sh to ignore CRs when diffing
authorChristian Grothoff <christian@grothoff.org>
Mon, 1 Aug 2011 20:43:33 +0000 (20:43 +0000)
committerChristian Grothoff <christian@grothoff.org>
Mon, 1 Aug 2011 20:43:33 +0000 (20:43 +0000)
src/dht/test_dht_tools.sh

index 68c0613a421806b3e166396ba2fce6d114261abc..f83c26a1a615272be4f19e7fa920e3fc28e9532a 100755 (executable)
@@ -63,7 +63,8 @@ if ! $getexe -k testkey -T 5 -t 8 > $out ; then
   stop_arm
   exit 1
 fi
-if ! diff -q $out $checkout ; then
+
+if ! diff --strip-trailing-cr -q $out $checkout ; then
   echo "FAIL: $out and $checkout differ"
   stop_arm
   exit 1