0
0
mirror of https://github.com/mongodb/mongo.git synced 2024-11-30 17:10:48 +01:00

Add a field to the error type representing server crashes in smoke.py.

This commit is contained in:
Richard Kreuter 2010-06-11 19:19:38 -04:00
parent 8b56191134
commit 753a74d271

View File

@ -159,6 +159,8 @@ class TestExitFailure(TestFailure):
class TestServerFailure(TestFailure):
def __init__(self, *args):
self.path = args[0]
self.status = -1 # this is meaningless as an exit code, but
# that's the point.
def __str__(self):
return 'mongod not ok after test %s' % self.path