Patchwork D8396: tests: skip non-readable check for root

login
register
mail settings
Submitter phabricator
Date April 10, 2020, 6:07 p.m.
Message ID <differential-rev-PHID-DREV-a7bsjer6lfkv64jopkad-req@mercurial-scm.org>
Download mbox | patch
Permalink /patch/46061/
State Superseded
Headers show

Comments

phabricator - April 10, 2020, 6:07 p.m.
joerg.sonnenberger created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.

REVISION SUMMARY
  Trying to check for errors on non-readable hgrc requires UNIX
  permissions, but still won't work for root. So adjust the check.

REPOSITORY
  rHG Mercurial

BRANCH
  default

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

AFFECTED FILES
  tests/test-hgrc.t

CHANGE DETAILS




To: joerg.sonnenberger, #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,7 +56,7 @@ 
   $ echo '%include $TESTTMP/included' >> $HGRC
   $ hg showconfig section
   section.option=value
-#if no-windows
+#if unix-permissions no-root
   $ chmod u-r $TESTTMP/included
   $ hg showconfig section
   hg: parse error at $TESTTMP/hgrc:2: cannot include $TESTTMP/included (Permission denied)