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

Matt Mackall mpm at selenic.com
Wed Mar 7 22:23:31 UTC 2007


On Mon, Mar 05, 2007 at 08:37:37AM +0100, Thomas Arendsen Hein wrote:
> * 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
> say?

Sounds fine to me.

-- 
Mathematics is the supreme nostalgia of our time.



More information about the Mercurial-devel mailing list