[PATCH] Make test-doctest.py and test-trusted.py executable

Thomas Arendsen Hein thomas at intevation.de
Mon Mar 5 01:37:37 CST 2007

* Emanuele Aina <faina.mail at tiscali.it> [20070304 16:01]:
> Thomas Arendsen Hein cancellò:
> >>Make test-doctest.py and test-trusted.py executable.
> >They don't have to be executable, as they're run directly with
> >'python foo.py'. Because of this they don't need the
> >"#!/usr/bin/env python", too.
> We could remove the executable bit even from other tests, to be more
> consistent (even if I'd prefer them to be executable as they are nicely
> colored by 'ls --color' ;)

.py files are executed with python
.bat files are executed with cmd (only on Windows)
other test-... files are executed directly.

What we could do is renaming them to .sh or .bash files and execute
them using direct calls, too. This would make it easier to use 'ls'
to show them, because otherwise you always have to filter out .out
(and possibly .err)

I'm not sure if this is worth the effort, but what do the others


thomas at intevation.de - http://intevation.de/~thomas/ - OpenPGP key: 0x5816791A
Intevation GmbH, Osnabrück - Registereintrag: Amtsgericht Osnabrück, HR B 18998
Geschäftsführer: Frank Koormann, Bernhard Reiter, Dr. Jan-Oliver Wagner

More information about the Mercurial-devel mailing list