summaryrefslogtreecommitdiff
path: root/test/suite/test_backup05.py
diff options
context:
space:
mode:
authorMichael Cahill <michael.cahill@mongodb.com>2016-03-25 08:19:12 +1100
committerMichael Cahill <michael.cahill@mongodb.com>2016-03-25 08:19:12 +1100
commit43e885a0f9a3ad046eae1726b005ca1280624be3 (patch)
treef03d31a7b36c476484f26ea5259777aeb7b13201 /test/suite/test_backup05.py
parent5cdd3e320cb19cd54111c2572a3d6e33d3009ad4 (diff)
parent9cf8eb2f15c6df7da90c19c86ccf7516ed126183 (diff)
downloadmongodb-3.2.5.tar.gz
Merge branch 'mongodb-3.4' into mongodb-3.2mongodb-3.2.5
Diffstat (limited to 'test/suite/test_backup05.py')
-rw-r--r--test/suite/test_backup05.py14
1 files changed, 5 insertions, 9 deletions
diff --git a/test/suite/test_backup05.py b/test/suite/test_backup05.py
index 8b176d0f7d7..991a9f71b19 100644
--- a/test/suite/test_backup05.py
+++ b/test/suite/test_backup05.py
@@ -44,14 +44,6 @@ class test_backup05(wttest.WiredTigerTestCase, suite_subprocess):
create_params = 'key_format=i,value_format=i'
freq = 5
- def copy_windows(self, olddir, newdir):
- os.mkdir(newdir)
- for fname in os.listdir(olddir):
- fullname = os.path.join(olddir, fname)
- # Skip lock file on Windows since it is locked
- if os.path.isfile(fullname) and "WiredTiger.lock" not in fullname:
- shutil.copy(fullname, newdir)
-
def check_manual_backup(self, i, olddir, newdir):
''' Simulate a manual backup from olddir and restart in newdir. '''
self.session.checkpoint()
@@ -71,7 +63,7 @@ class test_backup05(wttest.WiredTigerTestCase, suite_subprocess):
session.verify(self.uri)
conn.close()
- def test_backup(self):
+ def backup(self):
'''Check manual fsyncLock backup strategy'''
# Here's the strategy:
@@ -95,5 +87,9 @@ class test_backup05(wttest.WiredTigerTestCase, suite_subprocess):
else:
self.session.verify(self.uri)
+ def test_backup(self):
+ with self.expectedStdoutPattern('Recreating metadata'):
+ self.backup()
+
if __name__ == '__main__':
wttest.run()