diff options
author | David Bradford <david.bradford@mongodb.com> | 2018-06-13 12:38:04 -0400 |
---|---|---|
committer | David Bradford <david.bradford@mongodb.com> | 2018-06-18 14:17:34 -0400 |
commit | 4c2d1a88c19c316c7cfc895a6e0f7d1a81e85bd7 (patch) | |
tree | 365ce7730f1fa9e04bbf737c793fcd70e61f689d | |
parent | f012132dafbbcc80460b1ae2dbdf0a638838b10e (diff) | |
download | mongo-4c2d1a88c19c316c7cfc895a6e0f7d1a81e85bd7.tar.gz |
SERVER-34371: Don't ignore rmtree failures
(cherry picked from commit 90a2fd2a17c24589b1fa1fd98c5a07dbca78b1b2)
-rw-r--r-- | buildscripts/resmokelib/testing/fixtures/standalone.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/buildscripts/resmokelib/testing/fixtures/standalone.py b/buildscripts/resmokelib/testing/fixtures/standalone.py index 98e18241df8..0380e02214c 100644 --- a/buildscripts/resmokelib/testing/fixtures/standalone.py +++ b/buildscripts/resmokelib/testing/fixtures/standalone.py @@ -92,8 +92,9 @@ class MongoDFixture(interface.Fixture): raise errors.TestFailure("%s did not exit cleanly" % (self)) def setup(self): - if not self.preserve_dbpath: - utils.rmtree(self._dbpath, ignore_errors=True) + """Set up the mongod.""" + if not self.preserve_dbpath and os.path.lexists(self._dbpath): + utils.rmtree(self._dbpath, ignore_errors=False) try: os.makedirs(self._dbpath) |