summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTommaso Tocci <tommaso.tocci@mongodb.com>2023-01-17 23:43:06 +0100
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2023-01-20 09:55:44 +0000
commitfaf3a3415672ea1935f9f288bf7ecd208a63c5cb (patch)
tree1d995e30cbc767af29a8953a67733e1c47cd9b4b
parent2599afe324597e6df8c1b1e0e8dcafd3c5a7ad9b (diff)
downloadmongo-faf3a3415672ea1935f9f288bf7ecd208a63c5cb.tar.gz
SERVER-49705 'permitted' file may have been deleted by 'after_test'
-rw-r--r--buildscripts/resmokelib/testing/hooks/stepdown.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/buildscripts/resmokelib/testing/hooks/stepdown.py b/buildscripts/resmokelib/testing/hooks/stepdown.py
index da42d0efd4a..8fb565cd1d8 100644
--- a/buildscripts/resmokelib/testing/hooks/stepdown.py
+++ b/buildscripts/resmokelib/testing/hooks/stepdown.py
@@ -363,7 +363,7 @@ class FileBasedStepdownLifecycle(object):
# We remove the "permitted" file to revoke permission for the stepdown thread to continue
# performing stepdowns.
- os.remove(self.__stepdown_files.permitted)
+ fs.remove_if_exists(self.__stepdown_files.permitted)
class _StepdownThread(threading.Thread): # pylint: disable=too-many-instance-attributes