From patchwork Thu Oct 17 19:38:42 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: tests: avoid chmod on windows in hgrc tests From: Denis Laxalde X-Patchwork-Id: 42457 Message-Id: <726bd0b612a2f2822879.1571341122@marimba> To: mercurial-devel@mercurial-scm.org Date: Thu, 17 Oct 2019 21:38:42 +0200 # HG changeset patch # User Denis Laxalde # 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