summaryrefslogtreecommitdiff
path: root/buildscripts
diff options
context:
space:
mode:
authorJonathan Abrahams <jonathan@mongodb.com>2018-05-16 16:12:59 -0400
committerJonathan Abrahams <jonathan@mongodb.com>2018-05-16 16:54:24 -0400
commit0a03faba456a3acbbaabd6ad5694f98acfdf50bd (patch)
treeff61d5c56af0f9ee9c6b577611f23c63f2684ed5 /buildscripts
parent2ea00f5bf742da7f966790c42b7ef202bcd14a65 (diff)
downloadmongo-0a03faba456a3acbbaabd6ad5694f98acfdf50bd.tar.gz
SERVER-34865 Test archival fails when temporary files are removed
Diffstat (limited to 'buildscripts')
-rw-r--r--buildscripts/resmokelib/utils/archival.py7
1 files changed, 2 insertions, 5 deletions
diff --git a/buildscripts/resmokelib/utils/archival.py b/buildscripts/resmokelib/utils/archival.py
index ecbde08c675..8ccb3127f47 100644
--- a/buildscripts/resmokelib/utils/archival.py
+++ b/buildscripts/resmokelib/utils/archival.py
@@ -51,11 +51,8 @@ def directory_size(directory):
try:
dir_bytes += os.path.getsize(full_name)
except OSError:
- # Symlinks generate an error and are ignored.
- if os.path.islink(full_name):
- pass
- else:
- raise
+ # A file might be deleted while we are looping through the os.walk() result.
+ pass
return dir_bytes