Mercurial > hg
changeset 28338:9974b8236cac
tests: Solaris grep doesn't add a trailing newline when it's missing
The bad-extension tests emits a list of not-loaded extensions, and pipes
that output through grep. On Solaris, the test-output gets "(no-eol)"
appended because although the message has no trailing newline, GNU grep
adds it. If we simply add the newline to the message, the problem goes
away for both versions of grep.
author | Danek Duvall <danek.duvall@oracle.com> |
---|---|
date | Wed, 02 Mar 2016 15:01:41 -0800 |
parents | 869e65e68aee |
children | 67fa77e40702 |
files | tests/test-bad-extension.t |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/tests/test-bad-extension.t Wed Mar 02 14:58:29 2016 -0800 +++ b/tests/test-bad-extension.t Wed Mar 02 15:01:41 2016 -0800 @@ -39,7 +39,7 @@ > command = cmdutil.command(cmdtable) > @command('showbadexts', norepo=True) > def showbadexts(ui, *pats, **opts): - > ui.write('BADEXTS: %s' % ' '.join(sorted(extensions.notloaded()))) + > ui.write('BADEXTS: %s\n' % ' '.join(sorted(extensions.notloaded()))) > EOF $ hg --config extensions.badexts=showbadexts.py showbadexts 2>&1 | grep '^BADEXTS' BADEXTS: badext badext2