summaryrefslogtreecommitdiff
path: root/buildscripts/smoke.py
diff options
context:
space:
mode:
authorEric Milkie <milkie@10gen.com>2014-04-25 14:42:28 -0400
committerEric Milkie <milkie@10gen.com>2014-04-28 12:51:06 -0400
commit7f7103d7a4d4c22ce17630d46961003bb61cc862 (patch)
tree0ca025f974ea1d2597fa2b0e048a97bc58b0e76c /buildscripts/smoke.py
parent1f83b5f5e3ad400fe2de0e7427548cb21a05d751 (diff)
downloadmongo-7f7103d7a4d4c22ce17630d46961003bb61cc862.tar.gz
SERVER-13742 suppress unnecessary mongod-running messages for CppUnittests test suite
Diffstat (limited to 'buildscripts/smoke.py')
-rwxr-xr-xbuildscripts/smoke.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/buildscripts/smoke.py b/buildscripts/smoke.py
index 2cbb0c6cba2..35adf159b17 100755
--- a/buildscripts/smoke.py
+++ b/buildscripts/smoke.py
@@ -157,6 +157,8 @@ class mongod(object):
sock.close()
def is_mongod_up(self, port=mongod_port):
+ if not start_mongod:
+ return False
try:
self.check_mongo_port(int(port))
return True
@@ -602,12 +604,12 @@ def runTest(test, result):
result["exit_code"] = r
+
is_mongod_still_up = test_mongod.is_mongod_up(mongod_port)
- if not is_mongod_still_up:
+ if start_mongod and not is_mongod_still_up:
print "mongod is not running after test"
result["mongod_running_at_end"] = is_mongod_still_up;
- if start_mongod:
- raise TestServerFailure(path)
+ raise TestServerFailure(path)
result["mongod_running_at_end"] = is_mongod_still_up;