Skip to content
This repository has been archived by the owner on Aug 13, 2024. It is now read-only.

Commit

Permalink
add s3 feature for test
Browse files Browse the repository at this point in the history
  • Loading branch information
ZENOTME committed Jun 19, 2024
1 parent 102d36b commit a599963
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion icelake/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ csv = { workspace = true }
env_logger = { workspace = true }
arrow-csv = { workspace = true }
libtest-mimic = { workspace = true }
opendal = { workspace = true, features = ["layers-prometheus", "services-fs"] }
opendal = { workspace = true, features = ["layers-prometheus", "services-fs", "services-s3"] }

[features]
prometheus = ["dep:prometheus"]
Expand Down
8 changes: 4 additions & 4 deletions icelake/tests/utils/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,21 +24,21 @@ pub fn set_up() {

pub fn run_command(mut cmd: Command, desc: impl ToString) {
let desc = desc.to_string();
log::info!("Starting to {}, command: {:?}", &desc, cmd);
log::debug!("Starting to {}, command: {:?}", &desc, cmd);
let exit = cmd.status().unwrap();
if exit.success() {
log::info!("{} succeed!", desc)
log::debug!("{} succeed!", desc)
} else {
panic!("{} failed: {:?}", desc, exit);
}
}

pub fn get_cmd_output(mut cmd: Command, desc: impl ToString) -> String {
let desc = desc.to_string();
log::info!("Starting to {}, command: {:?}", &desc, cmd);
log::debug!("Starting to {}, command: {:?}", &desc, cmd);
let output = cmd.output().unwrap();
if output.status.success() {
log::info!("{} succeed!", desc);
log::debug!("{} succeed!", desc);
String::from_utf8(output.stdout).unwrap()
} else {
panic!("{} failed: {:?}", desc, output.status);
Expand Down

0 comments on commit a599963

Please sign in to comment.