test-chg: run only with chg
authorYuya Nishihara <yuya@tcha.org>
Sun, 20 Mar 2016 14:59:03 -0700
changeset 29274 148a9a5379f0
parent 29273 118a605e3ad9
child 29275 e53f961ac75f
test-chg: run only with chg It doesn't make sense to run test-chg.t without chg, so ignore it with vanilla hg, and specify chg executable explicitly. test-chg.t can host chg-specific tests.
tests/test-chg.t
--- a/tests/test-chg.t	Thu May 26 17:36:44 2016 -0700
+++ b/tests/test-chg.t	Sun Mar 20 14:59:03 2016 -0700
@@ -1,13 +1,15 @@
+#require chg
+
 init repo
 
-  $ hg init foo
+  $ chg init foo
   $ cd foo
 
 ill-formed config
 
-  $ hg status
+  $ chg status
   $ echo '=brokenconfig' >> $HGRCPATH
-  $ hg status
+  $ chg status
   hg: parse error at * (glob)
   [255]
 
@@ -26,7 +28,7 @@
   > printa = log -T "$A\n" -r 0
   > EOF
 
-  $ A=1 hg printa
+  $ A=1 chg printa
   P1
-  $ A=2 hg printa
+  $ A=2 chg printa
   P2