Mercurial > hg
changeset 6681:6a6ef726a2b3
run-tests.py: Make tests run with python2.3 if HGTEST_* is set.
optparse of python2.3 does not transform default values to the specified
type so e.g. "HGTEST_JOBS=4" (introduced in 07c3cd695b48) causes tests
to abort, because options.jobs is set to '4' instead of the number 4.
author | Thomas Arendsen Hein <thomas@intevation.de> |
---|---|
date | Mon, 16 Jun 2008 11:37:26 +0200 |
parents | deda205a00e1 |
children | 4fa7701918ed |
files | tests/run-tests.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/tests/run-tests.py Sun Jun 15 13:01:03 2008 +0200 +++ b/tests/run-tests.py Mon Jun 16 11:37:26 2008 +0200 @@ -67,7 +67,7 @@ help="test existing install at given location") for option, default in defaults.items(): - defaults[option] = os.environ.get(*default) + defaults[option] = int(os.environ.get(*default)) parser.set_defaults(**defaults) (options, args) = parser.parse_args() verbose = options.verbose