summaryrefslogtreecommitdiff
path: root/test/suite/test_readonly01.py
diff options
context:
space:
mode:
authorAlex Gorrod <alexg@wiredtiger.com>2016-03-03 08:56:19 +1100
committerAlex Gorrod <alexg@wiredtiger.com>2016-03-03 08:56:19 +1100
commit444981a456059f0652fd3bb1968d58d2c37b9089 (patch)
tree36feb8686f630119cda88fb3eb9024f60684eb6d /test/suite/test_readonly01.py
parent4531b92b50e009aca31cff8d3de0da5841df1cfb (diff)
parent659467348f451c8703e709161494be4eef371f23 (diff)
downloadmongodb-3.3.3.tar.gz
Merge branch 'develop' into mongodb-3.4mongodb-3.3.3
Diffstat (limited to 'test/suite/test_readonly01.py')
-rw-r--r--test/suite/test_readonly01.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/test/suite/test_readonly01.py b/test/suite/test_readonly01.py
index 86604eb6bfb..59e9743ab7e 100644
--- a/test/suite/test_readonly01.py
+++ b/test/suite/test_readonly01.py
@@ -96,7 +96,10 @@ class test_readonly01(wttest.WiredTigerTestCase, suite_subprocess):
# connection with readonly.
#
self.close_conn()
- if self.dirchmod:
+ #
+ # The chmod command is not fully portable to windows.
+ #
+ if self.dirchmod and os.name == 'posix':
for f in os.listdir(self.home):
if os.path.isfile(f):
os.chmod(f, 0444)
@@ -133,7 +136,7 @@ class test_readonly01(wttest.WiredTigerTestCase, suite_subprocess):
self.create = True
def test_readonly(self):
- if self.dirchmod:
+ if self.dirchmod and os.name == 'posix':
with self.expectedStderrPattern('Permission'):
self.readonly()
else: