Skip to content

Commit

Permalink
Add "validate" to hugr CLI command.
Browse files Browse the repository at this point in the history
  • Loading branch information
cqc-alec committed Jul 22, 2024
1 parent 090b283 commit 10bcb2a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hugr-py/tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ def validate(h: Hugr, mermaid: bool = False, roundtrip: bool = True):
workspace_dir = pathlib.Path(__file__).parent.parent.parent
# use the HUGR_BIN environment variable if set, otherwise use the debug build
bin_loc = os.environ.get("HUGR_BIN", str(workspace_dir / "target/debug/hugr"))
cmd = [bin_loc, "-"]
cmd = [bin_loc, "validate", "-"]

if mermaid:
cmd.append("--mermaid")
Expand Down

0 comments on commit 10bcb2a

Please sign in to comment.