From patchwork Fri Oct 18 02:16:49 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: D7132: tests: conditionalize a permission based test in test-hgrc.t From: phabricator X-Patchwork-Id: 42468 Message-Id: To: Phabricator Cc: mercurial-devel@mercurial-scm.org Date: Fri, 18 Oct 2019 02:16:49 +0000 mharbison72 created this revision. Herald added a subscriber: mercurial-devel. Herald added a reviewer: hg-reviewers. REPOSITORY rHG Mercurial REVISION DETAIL https://phab.mercurial-scm.org/D7132 AFFECTED FILES tests/test-hgrc.t CHANGE DETAILS To: mharbison72, #hg-reviewers Cc: mercurial-devel diff --git a/tests/test-hgrc.t b/tests/test-hgrc.t --- a/tests/test-hgrc.t +++ b/tests/test-hgrc.t @@ -56,10 +56,15 @@ $ echo '%include $TESTTMP/included' >> $HGRC $ hg showconfig section section.option=value +#if unix-permissions $ chmod u-r $TESTTMP/included $ hg showconfig section hg: parse error at $TESTTMP/hgrc:2: cannot include $TESTTMP/included (Permission denied) [255] +#else + $ hg showconfig section + section.option=value +#endif issue1829: wrong indentation