diff options
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: |