comparison tests/run-tests.py @ 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 38485d45f947
children 9fc5bf4adbcf
comparison
equal deleted inserted replaced
6680:deda205a00e1 6681:6a6ef726a2b3
65 help="output verbose messages") 65 help="output verbose messages")
66 parser.add_option("--with-hg", type="string", 66 parser.add_option("--with-hg", type="string",
67 help="test existing install at given location") 67 help="test existing install at given location")
68 68
69 for option, default in defaults.items(): 69 for option, default in defaults.items():
70 defaults[option] = os.environ.get(*default) 70 defaults[option] = int(os.environ.get(*default))
71 parser.set_defaults(**defaults) 71 parser.set_defaults(**defaults)
72 (options, args) = parser.parse_args() 72 (options, args) = parser.parse_args()
73 verbose = options.verbose 73 verbose = options.verbose
74 coverage = options.cover or options.cover_stdlib or options.annotate 74 coverage = options.cover or options.cover_stdlib or options.annotate
75 python = sys.executable 75 python = sys.executable