Beispiel #1
0
def dispatcher_experiment(fs, db, experiment):
    """Creates a dispatcher.Experiment object."""
    experiment_config_filepath = get_test_data_path('experiment-config.yaml')
    fs.add_real_file(experiment_config_filepath)
    for fuzzer in FUZZERS:
        fs.create_file(os.path.join(
            fuzzer_config_utils.get_fuzzer_configs_dir(), fuzzer),
                       contents=yaml.dump({'fuzzer': fuzzer}))
    return dispatcher.Experiment(experiment_config_filepath)
Beispiel #2
0
def dispatcher_experiment(fs, db, experiment):
    """Creates a dispatcher.Experiment object."""
    fs.create_dir(os.environ['WORK'])
    experiment_config_filepath = get_test_data_path('experiment-config.yaml')
    fs.add_real_file(experiment_config_filepath)
    return dispatcher.Experiment(experiment_config_filepath)