Skip to content

Commit 5210ea4

Browse files
Forward Kani arguments to AutoHarness list commands (#674)
## Summary Forward arguments supplied through `--kani-args` to the AutoHarness list invocations used by: - `--run list --with-autoharness` - `--run metrics --with-autoharness` ## Motivation `run-kani.sh` parses and stores arguments following `--kani-args`, but the AutoHarness list branches did not pass those arguments to Kani. As a result, options such as `--include-pattern` and `--exclude-pattern` were silently ignored, causing `list` and `metrics` to process the complete AutoHarness function set instead of the requested subset.
1 parent c3c0339 commit 5210ea4

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

‎scripts/run-kani.sh‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -328,15 +328,17 @@ main() {
328328
elif [[ "$run_command" == "list" ]]; then
329329
echo "Running Kani list command..."
330330
if [[ "$with_autoharness" == "true" ]]; then
331-
"$kani_path" autoharness -Z autoharness --list $unstable_args --std ./library --format markdown
331+
"$kani_path" autoharness -Z autoharness --list $unstable_args --std ./library --format markdown \
332+
"${command_args[@]}"
332333
else
333334
"$kani_path" list $unstable_args ./library --std --format markdown
334335
fi
335336
elif [[ "$run_command" == "metrics" ]]; then
336337
local current_dir=$(pwd)
337338
echo "Running Kani list command..."
338339
if [[ "$with_autoharness" == "true" ]]; then
339-
"$kani_path" autoharness -Z autoharness --list $unstable_args --std ./library --format json
340+
"$kani_path" autoharness -Z autoharness --list $unstable_args --std ./library --format json \
341+
"${command_args[@]}"
340342
else
341343
"$kani_path" list $unstable_args ./library --std --format json
342344
fi

0 commit comments

Comments
 (0)