test-share: handle sed/GNU-sed discrepancies
authorPatrick Mezard <pmezard@gmail.com>
Sun, 13 Dec 2009 18:54:54 +0100
changeset 10062 c204431b039e
parent 10061 9e2ab10728a2
child 10063 a46478b80ea3
test-share: handle sed/GNU-sed discrepancies
tests/test-share
--- a/tests/test-share	Sun Dec 13 18:06:24 2009 +0100
+++ b/tests/test-share	Sun Dec 13 18:54:54 2009 +0100
@@ -18,7 +18,8 @@
 [ -d .hg/store ] \
   && echo "fail: .hg/store should not exist" \
   || echo "pass: .hg/store does not exist"
-cat .hg/sharedpath | sed "s:$HGTMP:*HGTMP*:"; echo
+# sed appends a newline to the stream if none, GNU sed does not
+sed "s:$HGTMP:*HGTMP*:" .hg/sharedpath | tr -d '\n'; echo
 
 echo % commit in shared clone
 echo a >> a