summaryrefslogtreecommitdiff
path: root/test/suite
diff options
context:
space:
mode:
authorSusan LoVerso <sue@mongodb.com>2016-03-14 12:54:24 -0400
committerSusan LoVerso <sue@mongodb.com>2016-03-14 12:54:24 -0400
commit2ca6076281100a779234f9a6e03fda721795d812 (patch)
tree1fec51a32b01d2d580a5d6b7ed0501f8f1e59f3b /test/suite
parentf863e4982cd41924b2138af53d352011760dc135 (diff)
downloadmongo-2ca6076281100a779234f9a6e03fda721795d812.tar.gz
WT-2483 Skip temp log files when copying WT directory.
Diffstat (limited to 'test/suite')
-rw-r--r--test/suite/helper.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/test/suite/helper.py b/test/suite/helper.py
index 3895402a0d6..f85d708880f 100644
--- a/test/suite/helper.py
+++ b/test/suite/helper.py
@@ -107,7 +107,10 @@ def copy_wiredtiger_home(olddir, newdir, aligned=True):
for fname in os.listdir(olddir):
fullname = os.path.join(olddir, fname)
# Skip lock file, on Windows it is locked.
- if os.path.isfile(fullname) and "WiredTiger.lock" not in fullname:
+ # Skip temporary log files.
+ if os.path.isfile(fullname) and "WiredTiger.lock" not in fullname and \
+ "WiredTigerTmplog" not in fullname and \
+ "WiredTigerPreplog" not in fullname:
# Use a dd command that does not align on a block boundary.
if aligned:
shutil.copy(fullname, newdir)