diff options
author | Alex Gorrod <alexg@wiredtiger.com> | 2016-03-03 08:56:19 +1100 |
---|---|---|
committer | Alex Gorrod <alexg@wiredtiger.com> | 2016-03-03 08:56:19 +1100 |
commit | 444981a456059f0652fd3bb1968d58d2c37b9089 (patch) | |
tree | 36feb8686f630119cda88fb3eb9024f60684eb6d /test/suite/test_readonly01.py | |
parent | 4531b92b50e009aca31cff8d3de0da5841df1cfb (diff) | |
parent | 659467348f451c8703e709161494be4eef371f23 (diff) | |
download | mongodb-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.py | 7 |
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: |