From 10bcb2afe291d9c0d1ad92bcfc06219c3c963355 Mon Sep 17 00:00:00 2001 From: Alec Edgington Date: Mon, 22 Jul 2024 14:10:44 +0100 Subject: [PATCH] Add "validate" to hugr CLI command. --- hugr-py/tests/conftest.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hugr-py/tests/conftest.py b/hugr-py/tests/conftest.py index a3d70a399..6da88c4ba 100644 --- a/hugr-py/tests/conftest.py +++ b/hugr-py/tests/conftest.py @@ -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")