Show More
@@ -902,7 +902,8 b' class TTest(Test):' | |||||
902 |
|
902 | |||
903 | def _hghave(self, reqs): |
|
903 | def _hghave(self, reqs): | |
904 | # TODO do something smarter when all other uses of hghave are gone. |
|
904 | # TODO do something smarter when all other uses of hghave are gone. | |
905 | tdir = self._testdir.replace(b'\\', b'/') |
|
905 | runtestdir = os.path.abspath(os.path.dirname(_bytespath(__file__))) | |
|
906 | tdir = runtestdir.replace(b'\\', b'/') | |||
906 | proc = Popen4(b'%s -c "%s/hghave %s"' % |
|
907 | proc = Popen4(b'%s -c "%s/hghave %s"' % | |
907 | (self._shell, tdir, b' '.join(reqs)), |
|
908 | (self._shell, tdir, b' '.join(reqs)), | |
908 | self._testtmp, 0, self._getenv()) |
|
909 | self._testtmp, 0, self._getenv()) |
@@ -566,3 +566,20 b' backslash on end of line with glob match' | |||||
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. |
General Comments 0
You need to be logged in to leave comments.
Login now