Mercurial > hg
changeset 14264:8e00906066c9
run-tests: take the basepath when constructing the test temp dir
so it's possible to run tests that are outside the test/ dir
author | Idan Kamara <idankk86@gmail.com> |
---|---|
date | Sat, 07 May 2011 21:01:15 +0300 |
parents | 7352ff757a48 |
children | e4ab5ae193f2 |
files | tests/run-tests.py |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/tests/run-tests.py Sat May 07 20:56:43 2011 +0300 +++ b/tests/run-tests.py Sat May 07 21:01:15 2011 +0300 @@ -717,7 +717,7 @@ def ignore(msg): result('i', (test, msg)) - if (test.startswith("test-") and '~' not in test and + if (os.path.basename(test).startswith("test-") and '~' not in test and ('.' not in test or test.endswith('.py') or test.endswith('.bat') or test.endswith('.t'))): if not os.path.exists(test): @@ -796,7 +796,7 @@ # Make a tmp subdirectory to work in testtmp = os.environ["TESTTMP"] = os.environ["HOME"] = \ - os.path.join(HGTMP, test) + os.path.join(HGTMP, os.path.basename(test)) os.mkdir(testtmp) ret, out = runner(testpath, testtmp, options, [