mirror of https://github.com/mongodb/mongo
24 lines
766 B
Python
24 lines
766 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 buildscripts.resmokelib.testing.hooks import jsfile
|
|
|
|
|
|
class FuzzerRestoreSettings(jsfile.JSHook):
|
|
"""Cleans up unwanted changes from fuzzer."""
|
|
|
|
IS_BACKGROUND = False
|
|
|
|
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_settings.js")
|
|
jsfile.JSHook.__init__(
|
|
self, hook_logger, fixture, js_filename, description, shell_options=shell_options
|
|
)
|