# HG changeset patch # User Patrick Mezard # Date 1260726894 -3600 # Node ID c204431b039e11c692732711947b37f9090465c2 # Parent 9e2ab10728a2f68f243d1df624f715028944ac7c test-share: handle sed/GNU-sed discrepancies diff -r 9e2ab10728a2 -r c204431b039e 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