Skip to content
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

Test CLI - if no configuration / aux info interfaces files are provided, default to an empty vector #1178

Merged
merged 1 commit into from
Nov 21, 2024
Merged
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
14 changes: 8 additions & 6 deletions crates/test-cli/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -326,16 +326,18 @@ pub async fn run_command(

let config_interface = match config_interface_file {
Some(file_name) => fs::read(file_name)?,
None => fs::read(
config_interface_file_option.expect("No config interface file passed"),
)?,
None => match config_interface_file_option {
Some(config_interface_file) => fs::read(config_interface_file)?,
None => Vec::new(),
},
};

let aux_data_interface = match aux_data_interface_file {
Some(file_name) => fs::read(file_name)?,
None => fs::read(
aux_data_interface_file_option.expect("No aux data interface file passed"),
)?,
None => match aux_data_interface_file_option {
Some(aux_data_interface_file) => fs::read(aux_data_interface_file)?,
None => Vec::new(),
},
};

let program_version_number = match program_version_number_option {
Expand Down
Loading