# HG changeset patch # User Patrick Mezard # Date 2009-12-13 17:54:54 # Node ID c204431b039e11c692732711947b37f9090465c2 # Parent 9e2ab10728a2f68f243d1df624f715028944ac7c test-share: handle sed/GNU-sed discrepancies diff --git a/tests/test-share b/tests/test-share --- a/tests/test-share +++ b/tests/test-share @@ -18,7 +18,8 @@ cd repo2 [ -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