diff options
author | Esha Maharishi <esha.maharishi@mongodb.com> | 2016-10-18 18:19:12 -0400 |
---|---|---|
committer | Esha Maharishi <esha.maharishi@mongodb.com> | 2016-10-19 11:36:38 -0400 |
commit | f4d1637a254075c82f6b2a390c31d290819376db (patch) | |
tree | 8e4193433c5ba8df3fe3a695841148ca4fe16914 /jstests/readonly | |
parent | 59bfd84718bc931f3871a8d53e53edb004434788 (diff) | |
download | mongo-f4d1637a254075c82f6b2a390c31d290819376db.tar.gz |
SERVER-26691 read_only and read_only_sharded suites do not make directories read-only on windows
Diffstat (limited to 'jstests/readonly')
-rw-r--r-- | jstests/readonly/lib/read_only_test.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/jstests/readonly/lib/read_only_test.js b/jstests/readonly/lib/read_only_test.js index 792d64e1d04..cca01df38fc 100644 --- a/jstests/readonly/lib/read_only_test.js +++ b/jstests/readonly/lib/read_only_test.js @@ -5,7 +5,7 @@ var StandaloneFixture, ShardedFixture, runReadOnlyTest, zip2, cycleN; function makeDirectoryReadOnly(dir) { if (_isWindows()) { - run("attrib", "+r", dir, "/s"); + run("attrib", "+r", dir + "\\*.*", "/s"); } else { run("chmod", "-R", "a-w", dir); } @@ -13,7 +13,7 @@ var StandaloneFixture, ShardedFixture, runReadOnlyTest, zip2, cycleN; function makeDirectoryWritable(dir) { if (_isWindows()) { - run("attrib", "-r", dir, "/s"); + run("attrib", "-r", dir + "\\*.*", "/s"); } else { run("chmod", "-R", "a+w", dir); } |