Mercurial > hg-stable
diff tests/test-notify @ 6359:25e74cd3f023
test-notify: make it pass on Mac OS X 10.5
author | Florent Guillaume <fg@nuxeo.com> |
---|---|
date | Sun, 23 Mar 2008 01:23:03 +0100 |
parents | 5371a213b0f4 |
children | 31837416ef4d |
line wrap: on
line diff
--- a/tests/test-notify Sun Mar 23 01:13:56 2008 +0100 +++ b/tests/test-notify Sun Mar 23 01:23:03 2008 +0100 @@ -31,8 +31,18 @@ echo % commit hg --traceback --cwd a commit -Amb -d '1 0' +# on Mac OS X 10.5 the tmp path is very long so would get stripped in the subject line +cat <<EOF >> $HGRCPATH +[notify] +maxsubject = 200 +EOF + +# the python call below wraps continuation lines, which appear on Mac OS X 10.5 because +# of the very long subject line echo '% pull (minimal config)' -hg --traceback --cwd b pull ../a 2>&1 | sed -e 's/\(Message-Id:\).*/\1/' \ +hg --traceback --cwd b pull ../a 2>&1 | + python -c 'import sys,re; print re.sub("\n\t", " ", sys.stdin.read()),' | + sed -e 's/\(Message-Id:\).*/\1/' \ -e 's/changeset \([0-9a-f]* *\)in .*test-notif/changeset \1in test-notif/' \ -e 's/^details: .*test-notify/details: test-notify/' \ -e 's/^Date:.*/Date:/'