Mercurial > hg
changeset 10082:66d8ec33da32
test-share: Solaris sed can't handle never-ending lines
author | Mads Kiilerich <mads@kiilerich.com> |
---|---|
date | Wed, 16 Dec 2009 12:10:21 +0100 |
parents | a5f3f9b1c42a |
children | 580892d01310 |
files | tests/test-share |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/tests/test-share Wed Dec 16 12:10:21 2009 +0100 +++ b/tests/test-share Wed Dec 16 12:10:21 2009 +0100 @@ -18,8 +18,8 @@ [ -d .hg/store ] \ && echo "fail: .hg/store should not exist" \ || echo "pass: .hg/store does not exist" -# sed appends a newline to the stream if none, GNU sed does not -sed "s:$HGTMP:*HGTMP*:" .hg/sharedpath | tr -d '\n'; echo +# Some sed versions appends newline, some don't, and some just fails +(cat .hg/sharedpath; echo) | head -n1 | sed "s:$HGTMP:*HGTMP*:" echo % commit in shared clone echo a >> a