Patchwork tests: avoid chmod on windows in hgrc tests

login
register
mail settings
Submitter Denis Laxalde
Date Oct. 17, 2019, 7:38 p.m.
Message ID <726bd0b612a2f2822879.1571341122@marimba>
Download mbox | patch
Permalink /patch/42457/
State Accepted
Headers show

Comments

Denis Laxalde - Oct. 17, 2019, 7:38 p.m.
# HG changeset patch
# User Denis Laxalde <denis@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.
Yuya Nishihara - Oct. 18, 2019, 9:38 a.m.
On Thu, 17 Oct 2019 21:38:42 +0200, Denis Laxalde wrote:
> # HG changeset patch
> # User Denis Laxalde <denis@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

Queued, thanks.

Patch

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