Skip to content

Commit f3b5642

Browse files
committed
ci: run kani tests if test_kani.py is changed
Just so that we run the test when we change only the test itself. Signed-off-by: Patrick Roy <[email protected]>
1 parent 83b3893 commit f3b5642

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

.buildkite/pipeline_pr.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@
5353
not changed_files
5454
or any(x.suffix in [".rs", ".toml", ".lock"] for x in changed_files)
5555
or any(x.parent.name == "devctr" for x in changed_files)
56+
or any(x.name == "test_kani.py" for x in changed_files)
5657
):
5758
kani_grp = pipeline.build_group(
5859
"🔍 Kani",

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 --harness-timeout 30m",
37+
"cargo kani -Z unstable-options -Z stubbing -Z function-contracts -Z restrict-vtable -j --output-format terse --harness-timeout 40m",
3838
timeout=TIMEOUT,
3939
)
4040

0 commit comments

Comments
 (0)