Skip to content
Snippets Groups Projects
Commit 32ea48df authored by Yaroslav Dynnikov's avatar Yaroslav Dynnikov
Browse files

chore: reveal inner tests log

It's already formatted in conformity to usual `cargo test`.
Also, remove unused command-line arguments from `picodata test` command.

Close https://git.picodata.io/picodata/picodata/picodata/-/issues/61
parent 3aa31215
No related branches found
No related tags found
1 merge request!115chore: reveal inner tests log
Pipeline #5147 passed
...@@ -168,10 +168,7 @@ impl Tarantool { ...@@ -168,10 +168,7 @@ impl Tarantool {
#[derive(Debug, Parser, tlua::Push)] #[derive(Debug, Parser, tlua::Push)]
#[clap(about = "Run picodata integration tests")] #[clap(about = "Run picodata integration tests")]
pub struct Test { pub struct Test {}
#[clap(flatten)]
pub run: Run,
}
impl Test { impl Test {
pub fn tt_args(&self) -> Result<Vec<CString>, String> { pub fn tt_args(&self) -> Result<Vec<CString>, String> {
......
fn main() { fn main() {
let mut cmd = std::process::Command::new(env!("CARGO_BIN_EXE_picodata")); let status = std::process::Command::new(env!("CARGO_BIN_EXE_picodata"))
cmd.arg("test") .arg("test")
.args(["--instance-id", "i1", "--peer", "localhost"]); .status()
cmd.output() .unwrap();
.map(|o| {
assert!( assert!(status.success());
o.status.success(),
"\ncommand failed: {:?}\nstdout:\n{}\nstderr:\n{}",
cmd,
String::from_utf8_lossy(&o.stdout),
String::from_utf8_lossy(&o.stderr),
)
})
.unwrap()
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment