comparison tests/test-run-tests.t @ 25728:905c32321cfb

run-tests.py: execute hghave by the path relative to run-tests.py Before this patch, `run-tests.py` executes `hghave` by the path relative to `TESTDIR` (= cwd of `run-tests.py` running). This prevents third party tools for Mercurial from running `run-tests.py`, which is placed in `tests` of Mercurial source tree, in `tests` of own source tree. In such cases, `TESTDIR` refers the latter `tests`, and `hghave` doesn't exist in it. This is a one of preparations for issue4677.
author FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
date Fri, 03 Jul 2015 06:56:03 +0900
parents 4d2b9b304ad0
children 57dfadc4f46c
comparison
equal deleted inserted replaced
25727:b8245386ab40 25728:905c32321cfb
564 . 564 .
565 # Ran 1 tests, 0 skipped, 0 warned, 0 failed. 565 # Ran 1 tests, 0 skipped, 0 warned, 0 failed.
566 566
567 $ rm -f test-glob-backslash.t 567 $ rm -f test-glob-backslash.t
568 568
569 Test reusability for third party tools
570 ======================================
571
572 $ mkdir "$TESTTMP"/anothertests
573 $ cd "$TESTTMP"/anothertests
574
575 test that `run-tests.py` can execute hghave, even if it runs not in
576 Mercurial source tree.
577
578 $ cat > test-hghave.t <<EOF
579 > #require true
580 > $ echo foo
581 > foo
582 > EOF
583 $ run-tests.py test-hghave.t
584 .
585 # Ran 1 tests, 0 skipped, 0 warned, 0 failed.