[PATCH V3] tests: match ps output in a way working on OS X

Mads Kiilerich mads at kiilerich.com
Mon Apr 14 12:52:23 CDT 2014


On 04/14/2014 05:06 AM, Pierre-Yves David wrote:
> On 04/13/2014 12:40 AM, Pierre-Yves David wrote:
>>
>>
>> On 02/11/2014 12:32 PM, Matt Mackall wrote:
>>> On Tue, 2014-02-11 at 13:07 +0100, Simon Heimberg wrote:
>>>> # HG changeset patch
>>>> # User Simon Heimberg <simohe at besonet.ch>
>>>> # Date 1392120112 -3600
>>>> #      Tue Feb 11 13:01:52 2014 +0100
>>>> # Node ID 74e22640ea80f3be5afce90515ba61ac51cc7511
>>>> # Parent  d98ba4a87427ce601dd23de8d4f5288cc44fe945
>>>> tests: match ps output in a way working on OS X
>>>>
>>>> On OS X, `ps` does not have the option --no-heading. Ignore the
>>>> header with
>>>> a
>>>> glob match instead. Match the command lazier, because some systems 
>>>> could
>>>> print
>>>> a leading hyphen (-hg) or maybe the path (../hg).
>>>
>>> Queued for default, thanks. Had to manually fix up some whitespace
>>> damage.
>>
>> This patch apparently never made it to main.
>
> The relevant code have been backouted in 
> 0e2877f8605dcaf4fdf2ab7e0046f1f6f80161dd
>
> Not sure why.

ps is too different between bsd and sysv ... and the test was not really 
useful/relevant anyway.

/Mads



More information about the Mercurial-devel mailing list