Skip to content

test: use kani built-in --harness-timeout option #5252

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .buildkite/pipeline_pr.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@
not changed_files
or any(x.suffix in [".rs", ".toml", ".lock"] for x in changed_files)
or any(x.parent.name == "devctr" for x in changed_files)
or any(x.name == "test_kani.py" for x in changed_files)
):
kani_grp = pipeline.build_group(
"🔍 Kani",
Expand Down
2 changes: 1 addition & 1 deletion tests/integration_tests/test_kani.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def test_kani(results_dir):
# --output-format terse is required by -j
# -Z unstable-options is needed to enable the other `-Z` flags
_, stdout, _ = utils.check_output(
"cargo kani -Z unstable-options -Z stubbing -Z function-contracts -Z restrict-vtable -j --output-format terse",
"cargo kani -Z unstable-options -Z stubbing -Z function-contracts -Z restrict-vtable -j --output-format terse --harness-timeout 30m",
timeout=TIMEOUT,
)

Expand Down