[PATCH] tests: silence test-repo obsolete warning
timeless
timeless at fmr.im
Wed May 11 05:21:22 UTC 2016
# HG changeset patch
# User timeless <timeless at mozdev.org>
# Date 1462942167 0
# Wed May 11 04:49:27 2016 +0000
# Node ID cfb766fa3a0d41c83a57172c6a167caf1930a727
# Parent 401c5c11d34ffc7dc226bffe5612ba9bcdc686b7
# EXP-Topic runtests
# Available At bb://timeless/mercurial-crew
# hg pull bb://timeless/mercurial-crew -r cfb766fa3a0d
tests: silence test-repo obsolete warning
refactoring test-check-commit.t HGRCPATH bits as testrepo-helpers.sh
diff -r 401c5c11d34f -r cfb766fa3a0d tests/test-check-code.t
--- a/tests/test-check-code.t Fri May 06 19:24:25 2016 +0000
+++ b/tests/test-check-code.t Wed May 11 04:49:27 2016 +0000
@@ -1,5 +1,6 @@
#require test-repo
+ $ . "$TESTDIR/testrepo-helpers.sh"
$ check_code="$TESTDIR"/../contrib/check-code.py
$ cd "$TESTDIR"/..
diff -r 401c5c11d34f -r cfb766fa3a0d tests/test-check-commit.t
--- a/tests/test-check-commit.t Fri May 06 19:24:25 2016 +0000
+++ b/tests/test-check-commit.t Wed May 11 04:49:27 2016 +0000
@@ -2,10 +2,7 @@
Enable obsolescence to avoid the warning issue when obsmarker are found
- $ cat >> $HGRCPATH << EOF
- > [experimental]
- > evolution=createmarkers
- > EOF
+ $ . "$TESTDIR/testrepo-helpers.sh"
Go back in the hg repo
diff -r 401c5c11d34f -r cfb766fa3a0d tests/test-check-config.t
--- a/tests/test-check-config.t Fri May 06 19:24:25 2016 +0000
+++ b/tests/test-check-config.t Wed May 11 04:49:27 2016 +0000
@@ -1,5 +1,6 @@
#require test-repo
+ $ . "$TESTDIR/testrepo-helpers.sh"
$ cd "$TESTDIR"/..
New errors are not allowed. Warnings are strongly discouraged.
diff -r 401c5c11d34f -r cfb766fa3a0d tests/test-check-execute.t
--- a/tests/test-check-execute.t Fri May 06 19:24:25 2016 +0000
+++ b/tests/test-check-execute.t Wed May 11 04:49:27 2016 +0000
@@ -1,5 +1,6 @@
#require test-repo execbit
+ $ . "$TESTDIR/testrepo-helpers.sh"
$ cd "`dirname "$TESTDIR"`"
look for python scripts without the execute bit
diff -r 401c5c11d34f -r cfb766fa3a0d tests/test-check-module-imports.t
--- a/tests/test-check-module-imports.t Fri May 06 19:24:25 2016 +0000
+++ b/tests/test-check-module-imports.t Wed May 11 04:49:27 2016 +0000
@@ -1,5 +1,6 @@
#require test-repo
+ $ . "$TESTDIR/testrepo-helpers.sh"
$ import_checker="$TESTDIR"/../contrib/import-checker.py
Run the doctests from the import checker, and make sure
diff -r 401c5c11d34f -r cfb766fa3a0d tests/test-check-py3-compat.t
--- a/tests/test-check-py3-compat.t Fri May 06 19:24:25 2016 +0000
+++ b/tests/test-check-py3-compat.t Wed May 11 04:49:27 2016 +0000
@@ -1,5 +1,6 @@
#require test-repo
+ $ . "$TESTDIR/testrepo-helpers.sh"
$ cd "$TESTDIR"/..
$ hg files 'set:(**.py)' | sed 's|\\|/|g' | xargs python contrib/check-py3-compat.py
diff -r 401c5c11d34f -r cfb766fa3a0d tests/test-check-pyflakes.t
--- a/tests/test-check-pyflakes.t Fri May 06 19:24:25 2016 +0000
+++ b/tests/test-check-pyflakes.t Wed May 11 04:49:27 2016 +0000
@@ -1,5 +1,6 @@
#require test-repo pyflakes
+ $ . "$TESTDIR/testrepo-helpers.sh"
$ cd "`dirname "$TESTDIR"`"
run pyflakes on all tracked files ending in .py or without a file ending
diff -r 401c5c11d34f -r cfb766fa3a0d tests/test-check-shbang.t
--- a/tests/test-check-shbang.t Fri May 06 19:24:25 2016 +0000
+++ b/tests/test-check-shbang.t Wed May 11 04:49:27 2016 +0000
@@ -1,5 +1,6 @@
#require test-repo
+ $ . "$TESTDIR/testrepo-helpers.sh"
$ cd "`dirname "$TESTDIR"`"
look for python scripts that do not use /usr/bin/env
diff -r 401c5c11d34f -r cfb766fa3a0d tests/test-contrib-perf.t
--- a/tests/test-contrib-perf.t Fri May 06 19:24:25 2016 +0000
+++ b/tests/test-contrib-perf.t Wed May 11 04:49:27 2016 +0000
@@ -2,6 +2,7 @@
Set vars:
+ $ . "$TESTDIR/testrepo-helpers.sh"
$ CONTRIBDIR="$TESTDIR/../contrib"
Prepare repo:
diff -r 401c5c11d34f -r cfb766fa3a0d tests/test-debian-packages.t
--- a/tests/test-debian-packages.t Fri May 06 19:24:25 2016 +0000
+++ b/tests/test-debian-packages.t Wed May 11 04:49:27 2016 +0000
@@ -1,5 +1,7 @@
#require test-repo slow debhelper
+ $ . "$TESTDIR/testrepo-helpers.sh"
+
Ensure debuild doesn't run the testsuite, as that could get silly.
$ DEB_BUILD_OPTIONS=nocheck
$ export DEB_BUILD_OPTIONS
diff -r 401c5c11d34f -r cfb766fa3a0d tests/test-docker-packaging.t
--- a/tests/test-docker-packaging.t Fri May 06 19:24:25 2016 +0000
+++ b/tests/test-docker-packaging.t Wed May 11 04:49:27 2016 +0000
@@ -1,5 +1,7 @@
#require test-repo slow docker
+ $ . "$TESTDIR/testrepo-helpers.sh"
+
Ensure debuild doesn't run the testsuite, as that could get silly.
$ DEB_BUILD_OPTIONS=nocheck
$ export DEB_BUILD_OPTIONS
diff -r 401c5c11d34f -r cfb766fa3a0d tests/test-install.t
--- a/tests/test-install.t Fri May 06 19:24:25 2016 +0000
+++ b/tests/test-install.t Wed May 11 04:49:27 2016 +0000
@@ -70,6 +70,8 @@
no problems detected
#if test-repo
+ $ . "$TESTDIR/testrepo-helpers.sh"
+
$ cat >> wixxml.py << EOF
> import os, subprocess, sys
> import xml.etree.ElementTree as ET
diff -r 401c5c11d34f -r cfb766fa3a0d tests/test-mac-packages.t
--- a/tests/test-mac-packages.t Fri May 06 19:24:25 2016 +0000
+++ b/tests/test-mac-packages.t Wed May 11 04:49:27 2016 +0000
@@ -1,4 +1,7 @@
#require test-repo slow osx osxpackaging
+
+ $ . "$TESTDIR/testrepo-helpers.sh"
+
$ OUTPUTDIR=`pwd`
$ export OUTPUTDIR
$ KEEPMPKG=yes
diff -r 401c5c11d34f -r cfb766fa3a0d tests/testrepo-helpers.sh
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/testrepo-helpers.sh Wed May 11 04:49:27 2016 +0000
@@ -0,0 +1,4 @@
+cat >> $HGRCPATH << EOF
+[experimental]
+evolution=createmarkers
+EOF
More information about the Mercurial-devel
mailing list