diff tests/test-check-code.t @ 33204:ddd65b4f3ae6

tests: alias syshg and syshgenv so they can be switched conditionally
author Yuya Nishihara <yuya@tcha.org>
date Sun, 02 Jul 2017 13:14:20 +0900
parents 6c113a7dec52
children 5d0c0c8d2929
line wrap: on
line diff
--- a/tests/test-check-code.t	Fri Jun 30 21:49:29 2017 +0900
+++ b/tests/test-check-code.t	Sun Jul 02 13:14:20 2017 +0900
@@ -7,7 +7,8 @@
 New errors are not allowed. Warnings are strongly discouraged.
 (The writing "no-che?k-code" is for not skipping this file when checking.)
 
-  $ syshg locate -X contrib/python-zstandard -X hgext/fsmonitor/pywatchman |
+  $ testrepohg locate -X contrib/python-zstandard \
+  > -X hgext/fsmonitor/pywatchman |
   > sed 's-\\-/-g' | "$check_code" --warnings --per-file=0 - || false
   Skipping i18n/polib.py it has no-che?k-code (glob)
   Skipping mercurial/httpclient/__init__.py it has no-che?k-code (glob)
@@ -33,7 +34,7 @@
 
 Prevent adding new files in the root directory accidentally.
 
-  $ syshg files 'glob:*'
+  $ testrepohg files 'glob:*'
   .editorconfig
   .hgignore
   .hgsigs