summaryrefslogtreecommitdiff
path: root/buildscripts/resmokelib/testing
diff options
context:
space:
mode:
authorTommaso Tocci <tommaso.tocci@mongodb.com>2023-01-18 11:55:20 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2023-01-18 12:30:07 +0000
commite3073c252cfce36fb0545a6800443ac3c58dd9f6 (patch)
tree026785f4dfad5b6d57dcdf29cb7070bb4da9d90f /buildscripts/resmokelib/testing
parentc82eaeff371a536180ab1136ae571c706ad6ed68 (diff)
downloadmongo-e3073c252cfce36fb0545a6800443ac3c58dd9f6.tar.gz
SERVER-49705 'permitted' file may have been deleted by 'after_test'
Diffstat (limited to 'buildscripts/resmokelib/testing')
-rw-r--r--buildscripts/resmokelib/testing/hooks/lifecycle.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/buildscripts/resmokelib/testing/hooks/lifecycle.py b/buildscripts/resmokelib/testing/hooks/lifecycle.py
index 569847c7ccb..f4ba6ff9077 100644
--- a/buildscripts/resmokelib/testing/hooks/lifecycle.py
+++ b/buildscripts/resmokelib/testing/hooks/lifecycle.py
@@ -218,4 +218,4 @@ class FileBasedThreadLifecycle(object):
# We remove the "permitted" file to revoke permission for the hook thread to continue
# performing actions.
- os.remove(self.__action_files.permitted)
+ fs.remove_if_exists(self.__action_files.permitted)