[PATCH] tests: avoid chmod on windows in hgrc tests

Denis Laxalde denis at laxalde.org
Thu Oct 17 15:38:42 EDT 2019


# HG changeset patch
# User Denis Laxalde <denis at laxalde.org>
# Date 1571341041 -7200
#      Thu Oct 17 21:37:21 2019 +0200
# Node ID 726bd0b612a2f2822879921d0302963c27fc2823
# Parent  2c70dd03b74395fbec276a2e2d1d3b8347268a5d
tests: avoid chmod on windows in hgrc tests

Follow up on changeset d201a637c971 introducing this test, which fails
on Windows.

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,12 @@ Check %include
   $ echo '%include $TESTTMP/included' >> $HGRC
   $ hg showconfig section
   section.option=value
+#if no-windows
   $ chmod u-r $TESTTMP/included
   $ hg showconfig section
   hg: parse error at $TESTTMP/hgrc:2: cannot include $TESTTMP/included (Permission denied)
   [255]
+#endif
 
 issue1829: wrong indentation
 



More information about the Mercurial-devel mailing list