changeset 44723:28aacddf3af0

tests: skip non-readable check for root Trying to check for errors on non-readable hgrc requires UNIX permissions, but still won't work for root. So adjust the check. Differential Revision: https://phab.mercurial-scm.org/D8396
author Joerg Sonnenberger <joerg@bec.de>
date Fri, 10 Apr 2020 19:53:36 +0200
parents e5e5ee2b60e4
children 5c2a4f37eace
files tests/test-hgrc.t
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/tests/test-hgrc.t	Fri Apr 10 19:52:33 2020 +0200
+++ b/tests/test-hgrc.t	Fri Apr 10 19:53:36 2020 +0200
@@ -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)