summaryrefslogtreecommitdiff
path: root/buildscripts/resmokelib/testing/fixtures/shardedcluster.py
diff options
context:
space:
mode:
Diffstat (limited to 'buildscripts/resmokelib/testing/fixtures/shardedcluster.py')
-rw-r--r--buildscripts/resmokelib/testing/fixtures/shardedcluster.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/buildscripts/resmokelib/testing/fixtures/shardedcluster.py b/buildscripts/resmokelib/testing/fixtures/shardedcluster.py
index a89b7d75855..467d0b308c5 100644
--- a/buildscripts/resmokelib/testing/fixtures/shardedcluster.py
+++ b/buildscripts/resmokelib/testing/fixtures/shardedcluster.py
@@ -319,10 +319,14 @@ class _MongoSFixture(interface.Fixture):
self.mongos.pid)
self.mongos.stop()
- success = self.mongos.wait() == 0
+ exit_code = self.mongos.wait()
+ success = exit_code == 0
if running_at_start:
- self.logger.info("Successfully terminated the mongos on port %d.", self.port)
+ self.logger.info("Successfully terminated the mongos on port %d, exited with code"
+ " %d",
+ self.port,
+ exit_code)
return success