tests: skip non-readable check for root
authorJoerg Sonnenberger <joerg@bec.de>
Fri, 10 Apr 2020 19:53:36 +0200
changeset 44723 28aacddf3af0
parent 44722 e5e5ee2b60e4
child 44724 5c2a4f37eace
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
tests/test-hgrc.t
--- 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)