Skip to content
Snippets Groups Projects
Commit b9a8a851 authored by Pierre-Yves David's avatar Pierre-Yves David :octopus:
Browse files

data-setup: add a --bundle-brick argument to the full data-setup

Lets make larger use of this.
parent 0afcc61b
No related branches found
No related tags found
No related merge requests found
......@@ -35,6 +35,11 @@
help="Path to a working-copy data brick for this data-env\n(See 'suites/hg/make-working-copy-brick.py')",
)
@click.option(
"--bundle-brick",
type=click.Path(exists=True, dir_okay=True, file_okay=True, path_type=Path),
help="Path to a bundles data brick for this data-env\n(See 'suites/hg/brick-setup/create-bundle-brick')",
)
@click.option(
"--force",
is_flag=True,
help="Overwrites the data-env description file if it exists",
......@@ -44,6 +49,7 @@
repo: Path,
name,
wc_brick,
bundle_brick,
force: bool,
):
"""Record information about a data environment, given a folder
......@@ -92,6 +98,7 @@
data_env = str(data_env)
repo = str(repo)
wc_brick = str(wc_brick) if wc_brick is not None else None
bundle_brick = str(bundle_brick) if bundle_brick is not None else None
# XXX should probably automatically find scripts and run them.
# However there are few of them now so explicit listing seems simpler.
......@@ -123,6 +130,12 @@
subprocess.run(
[SCRIPT_DIR / "setup-55-delta-chain.py", data_env], check=True
)
if bundle_brick is not None:
click.echo("Setting up bundles related benchmark")
subprocess.run(
[SCRIPT_DIR / "setup-60-bundles", data_env, bundle_brick],
check=True,
)
if __name__ == "__main__":
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment