D6908: tests: use test harness `hg` in test-hghave.t

indygreg (Gregory Szorc) phabricator at mercurial-scm.org
Sun Sep 29 15:00:51 EDT 2019


indygreg created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.

REVISION SUMMARY
  This prevents the sub test harness from rebuilding Mercurial.
  It shaves ~30s from the test wall time on my machine.

REPOSITORY
  rHG Mercurial

REVISION DETAIL
  https://phab.mercurial-scm.org/D6908

AFFECTED FILES
  tests/test-hghave.t

CHANGE DETAILS

diff --git a/tests/test-hghave.t b/tests/test-hghave.t
--- a/tests/test-hghave.t
+++ b/tests/test-hghave.t
@@ -22,7 +22,7 @@
   > EOF
   $ ( \
   > testrepohgenv; \
-  > "$PYTHON" $TESTDIR/run-tests.py -j 1 \
+  > "$PYTHON" $TESTDIR/run-tests.py --with-hg=`which hg` -j 1 \
   >    $HGTEST_RUN_TESTS_PURE test-hghaveaddon.t \
   > )
   running 1 tests using 1 parallel processes 



To: indygreg, #hg-reviewers
Cc: mercurial-devel


More information about the Mercurial-devel mailing list