def create_previous_run(path, suffix):
    """Create a mock previous run of the tool."""
    prev_run = path / f'recipe_test_{suffix}'
    prev_recipe = prev_run / 'run' / 'recipe_test.yml'
    prev_recipe.parent.mkdir(parents=True)
    prev_recipe.write_text('test')

    return prev_run