File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -103,6 +103,7 @@ jobs:
103
103
- name : Run installed tests
104
104
if : ${{ matrix.os == 'ubuntu-20.04' }}
105
105
run : |
106
+ docker run kani-latest cargo kani --version
106
107
docker run -w /tmp/kani/tests/cargo-kani/simple-lib kani-latest cargo kani
107
108
docker run -w /tmp/kani/tests/cargo-kani/simple-visualize kani-latest cargo kani
108
109
docker run -w /tmp/kani/tests/cargo-kani/build-rs-works kani-latest cargo kani
Original file line number Diff line number Diff line change @@ -13,7 +13,12 @@ use toml::Value;
13
13
///
14
14
/// The arguments passed via command line have precedence over the ones from the Cargo.toml.
15
15
pub fn join_args ( input_args : Vec < OsString > ) -> Result < Vec < OsString > > {
16
- let file = std:: fs:: read_to_string ( cargo_locate_project ( ) ?) ?;
16
+ let toml_path = cargo_locate_project ( ) ;
17
+ if toml_path. is_err ( ) {
18
+ // We're not inside a Cargo project. Don't error... yet.
19
+ return Ok ( input_args) ;
20
+ }
21
+ let file = std:: fs:: read_to_string ( toml_path?) ?;
17
22
let ( kani_args, cbmc_args) = toml_to_args ( & file) ?;
18
23
merge_args ( input_args, kani_args, cbmc_args)
19
24
}
You can’t perform that action at this time.
0 commit comments