diff options
author | Kyle Suarez <kyle.suarez@mongodb.com> | 2016-08-24 14:48:20 -0400 |
---|---|---|
committer | Kyle Suarez <kyle.suarez@mongodb.com> | 2016-08-24 17:39:00 -0400 |
commit | 7486388e02d31c3ef31ffd399d4304843527a12e (patch) | |
tree | fa11b7108d8f9f78c267eb318d56bd198bbe0050 /buildscripts/resmokelib | |
parent | 4a19bd94247f4356229f2f3a7b95f76451f41a9b (diff) | |
download | mongo-7486388e02d31c3ef31ffd399d4304843527a12e.tar.gz |
SERVER-25768 skip hooks in fuzzer suites when invalid views present
Skips the validate and dbhash hooks for jstestfuzz* suites when listCollections
fails with an InvalidViewDefinition error.
Diffstat (limited to 'buildscripts/resmokelib')
-rw-r--r-- | buildscripts/resmokelib/testing/hooks.py | 18 |
1 files changed, 14 insertions, 4 deletions
diff --git a/buildscripts/resmokelib/testing/hooks.py b/buildscripts/resmokelib/testing/hooks.py index e610a9e95c0..fb4faf99d7f 100644 --- a/buildscripts/resmokelib/testing/hooks.py +++ b/buildscripts/resmokelib/testing/hooks.py @@ -218,10 +218,15 @@ class ValidateCollections(JsCustomBehavior): Runs full validation on all collections in all databases on every stand-alone node, primary replica-set node, or primary shard node. """ - def __init__(self, logger, fixture): + def __init__(self, logger, fixture, shell_options=None): description = "Full collection validation" js_filename = os.path.join("jstests", "hooks", "run_validate_collections.js") - JsCustomBehavior.__init__(self, logger, fixture, js_filename, description) + JsCustomBehavior.__init__(self, + logger, + fixture, + js_filename, + description, + shell_options=shell_options) class CheckReplDBHash(JsCustomBehavior): @@ -229,10 +234,15 @@ class CheckReplDBHash(JsCustomBehavior): Checks that the dbhashes of all non-local databases and non-replicated system collections match on the primary and secondaries. """ - def __init__(self, logger, fixture): + def __init__(self, logger, fixture, shell_options=None): description = "Check dbhashes of all replica set or master/slave members" js_filename = os.path.join("jstests", "hooks", "run_check_repl_dbhash.js") - JsCustomBehavior.__init__(self, logger, fixture, js_filename, description) + JsCustomBehavior.__init__(self, + logger, + fixture, + js_filename, + description, + shell_options=shell_options) class TypeSensitiveSON(bson.SON): |