From patchwork Sun May 29 13:40:52 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [1,of,2] test-chg: run only with chg From: Yuya Nishihara X-Patchwork-Id: 15238 Message-Id: To: mercurial-devel@mercurial-scm.org Date: Sun, 29 May 2016 22:40:52 +0900 # HG changeset patch # User Yuya Nishihara # Date 1458511143 25200 # Sun Mar 20 14:59:03 2016 -0700 # Node ID f4d797228ecddcebfe86a9f726cdd55df49ef874 # Parent 9da137faaa9c9593f821923189316e7fcb38cf67 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. diff --git a/tests/test-chg.t b/tests/test-chg.t --- a/tests/test-chg.t +++ b/tests/test-chg.t @@ -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 @@ alias having an environment variable and > 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