Skip to content

Commit 83b3893

Browse files
committed
test: use kani built-in --harness-timeout option
Set a per-harness timeout of 30 minutes. This should hopefully make it easier to debug scenarios where proofs end up hanging indefinitely, as we now no longer hit the pytest timeout, but instead a timeout built into kani (which should tell us what exact harness timed out). Signed-off-by: Patrick Roy <roypat@amazon.co.uk>
1 parent a93e9f2 commit 83b3893

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tests/integration_tests/test_kani.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ def test_kani(results_dir):
3434
# --output-format terse is required by -j
3535
# -Z unstable-options is needed to enable the other `-Z` flags
3636
_, stdout, _ = utils.check_output(
37-
"cargo kani -Z unstable-options -Z stubbing -Z function-contracts -Z restrict-vtable -j --output-format terse",
37+
"cargo kani -Z unstable-options -Z stubbing -Z function-contracts -Z restrict-vtable -j --output-format terse --harness-timeout 30m",
3838
timeout=TIMEOUT,
3939
)
4040

0 commit comments

Comments
 (0)