0
0
mirror of https://github.com/mongodb/mongo.git synced 2024-12-01 09:32:32 +01:00

SERVER-18617 resmoke.py should not error when tearing down fixtures which had not been set up

This commit is contained in:
Charlie Swanson 2015-05-21 15:00:55 -04:00
parent 15191a46c7
commit c69ae21c3a
2 changed files with 2 additions and 2 deletions

View File

@ -312,7 +312,7 @@ class _MongoSFixture(interface.Fixture):
running_at_start = self.is_running()
success = True # Still a success even if nothing is running.
if not running_at_start:
if not running_at_start and self.port is not None:
self.logger.info("mongos on port %d was expected to be running in teardown(), but"
" wasn't." % (self.port))

View File

@ -119,7 +119,7 @@ class MongoDFixture(interface.Fixture):
running_at_start = self.is_running()
success = True # Still a success even if nothing is running.
if not running_at_start:
if not running_at_start and self.port is not None:
self.logger.info("mongod on port %d was expected to be running in teardown(), but"
" wasn't." % (self.port))