tests: refactor run-tests helpers
authortimeless <timeless@mozdev.org>
Wed, 11 May 2016 16:40:16 +0000
changeset 29220 054bcdad6042
parent 29219 3c9066ed557c
child 29221 73f58eb14684
tests: refactor run-tests helpers test-run-tests-rev.t will need them
tests/helper-runtests.sh
tests/test-run-tests.t
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/helper-runtests.sh	Wed May 11 16:40:16 2016 +0000
@@ -0,0 +1,7 @@
+#
+# Avoid interference from actual test env:
+
+unset HGTEST_JOBS
+unset HGTEST_TIMEOUT
+unset HGTEST_PORT
+unset HGTEST_SHELL
--- a/tests/test-run-tests.t	Wed May 11 04:49:27 2016 +0000
+++ b/tests/test-run-tests.t	Wed May 11 16:40:16 2016 +0000
@@ -2,10 +2,7 @@
 
 Avoid interference from actual test env:
 
-  $ unset HGTEST_JOBS
-  $ unset HGTEST_TIMEOUT
-  $ unset HGTEST_PORT
-  $ unset HGTEST_SHELL
+  $ . "$TESTDIR/helper-runtests.sh"
 
 Smoke test with install
 ============