diff options
Diffstat (limited to 'buildscripts/resmokelib/testing/hooks/dbhash.py')
-rw-r--r-- | buildscripts/resmokelib/testing/hooks/dbhash.py | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/buildscripts/resmokelib/testing/hooks/dbhash.py b/buildscripts/resmokelib/testing/hooks/dbhash.py index fdee7bb9f63..40caa5149c6 100644 --- a/buildscripts/resmokelib/testing/hooks/dbhash.py +++ b/buildscripts/resmokelib/testing/hooks/dbhash.py @@ -1,6 +1,4 @@ -""" -Testing hook for verifying data consistency across a replica set. -""" +"""Test hook for verifying data consistency across a replica set.""" from __future__ import absolute_import @@ -10,13 +8,16 @@ from . import jsfile class CheckReplDBHash(jsfile.DataConsistencyHook): - """ - Checks that the dbhashes of all non-local databases and non-replicated system collections + """Check if the dbhashes match. + + This includes dbhashes for all non-local databases and non-replicated system collections that match on the primary and secondaries. """ - def __init__(self, hook_logger, fixture, shell_options=None): + def __init__( # pylint: disable=super-init-not-called + self, hook_logger, fixture, shell_options=None): + """Initialize CheckReplDBHash.""" description = "Check dbhashes of all replica set or master/slave members" js_filename = os.path.join("jstests", "hooks", "run_check_repl_dbhash.js") - jsfile.JSHook.__init__(self, hook_logger, fixture, js_filename, description, - shell_options=shell_options) + jsfile.JSHook.__init__( # pylint: disable=non-parent-init-called + self, hook_logger, fixture, js_filename, description, shell_options=shell_options) |