From 164a9bf480007e9e0470a152eabdb7b9923a3386 Mon Sep 17 00:00:00 2001 From: sergerad Date: Sun, 1 Dec 2024 14:01:13 +1300 Subject: [PATCH] Fix test only --- .github/workflows/ci.yml | 2 +- scripts/prove_stdio.rs | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3037c29a5..8ad6992f4 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -193,4 +193,4 @@ jobs: uses: actions/checkout@v4 - name: Run the script - run: cargo xtask prove-stdio test artifacts/witness_b3_b6.json --use-test-config + run: cargo xtask prove-stdio verify artifacts/witness_b3_b6.json --use-test-config diff --git a/scripts/prove_stdio.rs b/scripts/prove_stdio.rs index 50d15c1a1..d894053a3 100644 --- a/scripts/prove_stdio.rs +++ b/scripts/prove_stdio.rs @@ -146,6 +146,9 @@ fn prove_command(args: ProveStdioArgs, envs: Vec<(&str, &str)>) -> anyhow::Resul .to_str() .ok_or(anyhow::anyhow!("Invalid output dir path"))?, ]); + if let RunMode::Test = args.mode { + cmd.arg("--test-only"); + } if args.use_test_config { cmd.arg("--use-test-config"); }