Files
mongo/buildscripts/resmokelib/testing/hooks/fuzzer_restore_cluster_settings.py
2020-03-25 18:39:44 +00:00

21 lines
727 B
Python

"""Test hook for resetting the server in a sane state.
The main use case is to ensure that other hooks that will run against the server will not
encounter unexpected failures.
"""
import os.path
from . import jsfile
class FuzzerRestoreClusterSettings(jsfile.JSHook):
"""Cleans up unwanted changes from fuzzer."""
def __init__(self, hook_logger, fixture, shell_options=None):
"""Run fuzzer cleanup."""
description = "Clean up unwanted changes from fuzzer"
js_filename = os.path.join("jstests", "hooks", "run_fuzzer_restore_cluster_settings.js")
jsfile.JSHook.__init__(self, hook_logger, fixture, js_filename, description,
shell_options=shell_options)