changeset 29220:054bcdad6042

tests: refactor run-tests helpers test-run-tests-rev.t will need them
author timeless <timeless@mozdev.org>
date Wed, 11 May 2016 16:40:16 +0000
parents 3c9066ed557c
children 73f58eb14684
files tests/helper-runtests.sh tests/test-run-tests.t
diffstat 2 files changed, 8 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- /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
 ============