tests/hghave: easier way to skip tests

Adrian Buehlmann adrian at cadifra.com
Sun Jun 10 13:04:44 CDT 2012


On 2012-06-10 19:11, Mads Kiilerich wrote:
> Adrian Buehlmann wrote, On 06/09/2012 08:14 PM:
>> On 2012-06-09 19:21, Mads Kiilerich wrote:
>>> The easy workaround is to set PATH so these tools isn't found. 
>> That might work. However, on Windows, PATH is often configured by
>> installing, so users don't usually modify PATH. It's also pretty ugly,
>> as the respective dialogs on Windows to modify the PATH are pretty
>> clumsy (although there are programs that help there).
>>
>> Another problem is, that on Windows there are two PATHs: One is in the
>> "System variables" and the second one is in the "user variables".
>> Changing the former requires admin rights. For example I see here, that
>> I have "C:\Program Files\Perforce" (for p4.exe) in the "System
>> variables" PATH. I'm pretty sure this was configured like this by the
>> Perforce installer.
> 
> Is it not possible to set PATH as a part of the command line for 
> invoking run-tests? That works the places I have tried to run the tests.

It certainly is, if you don't use $PATH when defining PATH. But then,
you lose everything it already had. However, that might exactly be what
we want here: a stripped-down $PATH. I see you've done that on the
hackable wiki page. I think that's probably a good thing.

(Strangely, I happen to have dd.exe only in C:\cygwin\bin. dd is used in
test-verify.t)


More information about the Mercurial-devel mailing list