Patchwork D7132: tests: conditionalize a permission based test in test-hgrc.t

login
register
mail settings
Submitter phabricator
Date Oct. 18, 2019, 2:16 a.m.
Message ID <differential-rev-PHID-DREV-7svwbkfkqoj2u4ucqbph-req@mercurial-scm.org>
Download mbox | patch
Permalink /patch/42468/
State Superseded
Headers show

Comments

phabricator - Oct. 18, 2019, 2:16 a.m.
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
phabricator - Oct. 18, 2019, 10:05 p.m.
mharbison72 added a comment.
mharbison72 abandoned this revision.


  726bd0b612a2 <https://phab.mercurial-scm.org/rHG726bd0b612a2f2822879921d0302963c27fc2823> does the same thing.

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST ACTION
  https://phab.mercurial-scm.org/D7132/new/

REVISION DETAIL
  https://phab.mercurial-scm.org/D7132

To: mharbison72, #hg-reviewers
Cc: mercurial-devel

Patch

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