Mercurial > hg > mercurial-crew-with-dirclash
comparison tests/run-tests.py @ 5388:557e4a916e12
run-tests.py: allow a different temporary directory to be specified
author | Bryan O'Sullivan <bos@serpentine.com> |
---|---|
date | Fri, 05 Oct 2007 12:42:52 -0700 |
parents | e3a0c092b4e2 |
children | 8374f3f081f2 |
comparison
equal
deleted
inserted
replaced
5387:4b6f0aa568e5 | 5388:557e4a916e12 |
---|---|
45 help="retest failed tests") | 45 help="retest failed tests") |
46 parser.add_option("-s", "--cover_stdlib", action="store_true", | 46 parser.add_option("-s", "--cover_stdlib", action="store_true", |
47 help="print a test coverage report inc. standard libraries") | 47 help="print a test coverage report inc. standard libraries") |
48 parser.add_option("-t", "--timeout", type="int", | 48 parser.add_option("-t", "--timeout", type="int", |
49 help="kill errant tests after TIMEOUT seconds") | 49 help="kill errant tests after TIMEOUT seconds") |
50 parser.add_option("--tmpdir", type="string", | |
51 help="run tests in the given temporary directory") | |
50 parser.add_option("-v", "--verbose", action="store_true", | 52 parser.add_option("-v", "--verbose", action="store_true", |
51 help="output verbose messages") | 53 help="output verbose messages") |
52 parser.add_option("--with-hg", type="string", | 54 parser.add_option("--with-hg", type="string", |
53 help="test existing install at given location") | 55 help="test existing install at given location") |
54 | 56 |
392 # the tests produce repeatable output. | 394 # the tests produce repeatable output. |
393 os.environ['LANG'] = os.environ['LC_ALL'] = 'C' | 395 os.environ['LANG'] = os.environ['LC_ALL'] = 'C' |
394 os.environ['TZ'] = 'GMT' | 396 os.environ['TZ'] = 'GMT' |
395 | 397 |
396 TESTDIR = os.environ["TESTDIR"] = os.getcwd() | 398 TESTDIR = os.environ["TESTDIR"] = os.getcwd() |
397 HGTMP = os.environ["HGTMP"] = tempfile.mkdtemp("", "hgtests.") | 399 HGTMP = os.environ['HGTMP'] = tempfile.mkdtemp('', 'hgtests.', options.tmpdir) |
398 DAEMON_PIDS = None | 400 DAEMON_PIDS = None |
399 HGRCPATH = None | 401 HGRCPATH = None |
400 | 402 |
401 os.environ["HGEDITOR"] = sys.executable + ' -c "import sys; sys.exit(0)"' | 403 os.environ["HGEDITOR"] = sys.executable + ' -c "import sys; sys.exit(0)"' |
402 os.environ["HGMERGE"] = ('python "%s" -L my -L other' | 404 os.environ["HGMERGE"] = ('python "%s" -L my -L other' |