0
0
mirror of https://github.com/mongodb/mongo.git synced 2024-12-01 09:32:32 +01:00

SERVER-26691 read_only and read_only_sharded suites do not make directories read-only on windows

This commit is contained in:
Esha Maharishi 2016-10-18 18:19:12 -04:00
parent 59bfd84718
commit f4d1637a25

View File

@ -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);
}