[PATCH 2 of 2] tests: move the '-hg' postfix for all style tests

Pierre-Yves David pierre-yves.david at ens-lyon.org
Fri Dec 11 11:46:34 CST 2015


# HG changeset patch
# User Pierre-Yves David <pierre-yves.david at fb.com>
# Date 1449384579 28800
#      Sat Dec 05 22:49:39 2015 -0800
# Node ID c7dfd350c623200a61cb0317d96c96f93179ea61
# Parent  ccf479a499b33bdda63e706be9bd65f6268ac6a8
# EXP-Topic testcheck
# Available At http://hg.netv6.net/marmoute-wip/mercurial/
#              hg pull http://hg.netv6.net/marmoute-wip/mercurial/ -r c7dfd350c623
tests: move the '-hg' postfix for all style tests

We had them on 'test-check-code-hg.t' to avoid collision with the test checking
'check-code' itself. Now that this one have been rename, we can safely remove
this suffix for all of them. This get them in line with 'check-pyflakes.t'.

diff --git a/tests/test-check-code-hg.t b/tests/test-check-code-hg.t
deleted file mode 100644
--- a/tests/test-check-code-hg.t
+++ /dev/null
@@ -1,15 +0,0 @@
-#require test-repo
-
-  $ check_code="$TESTDIR"/../contrib/check-code.py
-  $ cd "$TESTDIR"/..
-
-New errors are not allowed. Warnings are strongly discouraged.
-(The writing "no-che?k-code" is for not skipping this file when checking.)
-
-  $ hg locate | sed 's-\\-/-g' |
-  >   xargs "$check_code" --warnings --per-file=0 || false
-  Skipping hgext/zeroconf/Zeroconf.py it has no-che?k-code (glob)
-  Skipping i18n/polib.py it has no-che?k-code (glob)
-  Skipping mercurial/httpclient/__init__.py it has no-che?k-code (glob)
-  Skipping mercurial/httpclient/_readers.py it has no-che?k-code (glob)
-  Skipping mercurial/httpclient/socketutil.py it has no-che?k-code (glob)
diff --git a/tests/test-check-code.t b/tests/test-check-code.t
new file mode 100644
--- /dev/null
+++ b/tests/test-check-code.t
@@ -0,0 +1,15 @@
+#require test-repo
+
+  $ check_code="$TESTDIR"/../contrib/check-code.py
+  $ cd "$TESTDIR"/..
+
+New errors are not allowed. Warnings are strongly discouraged.
+(The writing "no-che?k-code" is for not skipping this file when checking.)
+
+  $ hg locate | sed 's-\\-/-g' |
+  >   xargs "$check_code" --warnings --per-file=0 || false
+  Skipping hgext/zeroconf/Zeroconf.py it has no-che?k-code (glob)
+  Skipping i18n/polib.py it has no-che?k-code (glob)
+  Skipping mercurial/httpclient/__init__.py it has no-che?k-code (glob)
+  Skipping mercurial/httpclient/_readers.py it has no-che?k-code (glob)
+  Skipping mercurial/httpclient/socketutil.py it has no-che?k-code (glob)
diff --git a/tests/test-check-commit-hg.t b/tests/test-check-commit.t
rename from tests/test-check-commit-hg.t
rename to tests/test-check-commit.t
diff --git a/tests/test-check-config-hg.t b/tests/test-check-config.t
rename from tests/test-check-config-hg.t
rename to tests/test-check-config.t


More information about the Mercurial-devel mailing list