diff options
Diffstat (limited to 'test/suite/wttest.py')
-rw-r--r-- | test/suite/wttest.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/suite/wttest.py b/test/suite/wttest.py index b5a58d1566f..a1945b4325d 100644 --- a/test/suite/wttest.py +++ b/test/suite/wttest.py @@ -335,6 +335,14 @@ class WiredTigerTestCase(unittest.TestCase): # always get back to original directory os.chdir(self.origcwd) + # Make sure no read-only files or directories were left behind + os.chmod(self.testdir, 0777) + for root, dirs, files in os.walk(self.testdir): + for d in dirs: + os.chmod(os.path.join(root, d), 0777) + for f in files: + os.chmod(os.path.join(root, f), 0666) + # Clean up unless there's a failure if (passed or skipped) and not WiredTigerTestCase._preserveFiles: shutil.rmtree(self.testdir, ignore_errors=True) |