diff options
author | Susan LoVerso <sue@mongodb.com> | 2016-03-14 12:54:24 -0400 |
---|---|---|
committer | Susan LoVerso <sue@mongodb.com> | 2016-03-14 12:54:24 -0400 |
commit | 2ca6076281100a779234f9a6e03fda721795d812 (patch) | |
tree | 1fec51a32b01d2d580a5d6b7ed0501f8f1e59f3b /test | |
parent | f863e4982cd41924b2138af53d352011760dc135 (diff) | |
download | mongo-2ca6076281100a779234f9a6e03fda721795d812.tar.gz |
WT-2483 Skip temp log files when copying WT directory.
Diffstat (limited to 'test')
-rw-r--r-- | test/suite/helper.py | 5 |
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) |