Patchwork [2,of,6,v4] tests: refactor run-tests helpers

login
register
mail settings
Submitter timeless
Date May 11, 2016, 5:18 p.m.
Message ID <50d28fbddb5bfa8a60f7.1462987092@gcc2-power8.osuosl.org>
Download mbox | patch
Permalink /patch/15021/
State Accepted, archived
Headers show

Comments

timeless - May 11, 2016, 5:18 p.m.
# HG changeset patch
# User timeless <timeless@mozdev.org>
# Date 1462984816 0
#      Wed May 11 16:40:16 2016 +0000
# Node ID 50d28fbddb5bfa8a60f78c5c9a0131a35312ad42
# Parent  4871272844556ca7b7e411def76528353a6819d7
# EXP-Topic runtests
# Available At bb://timeless/mercurial-crew
#              hg pull bb://timeless/mercurial-crew -r 50d28fbddb5b
tests: refactor run-tests helpers

test-run-tests-rev.t will need them

Patch

diff -r 487127284455 -r 50d28fbddb5b tests/helper-runtests.sh
--- /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
diff -r 487127284455 -r 50d28fbddb5b tests/test-run-tests.t
--- 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
 ============