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:
parent
59bfd84718
commit
f4d1637a25
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user