mirror of
https://gitlab.cern.ch/wotsubo/psboard-qaqc-postprocess.git
synced 2025-07-12 14:39:29 +09:00
update: log format
This commit is contained in:
parent
eff62d7f09
commit
62a5393cf5
6 changed files with 126 additions and 116 deletions
13
tests/cli.rs
13
tests/cli.rs
|
@ -10,14 +10,23 @@ mod integrated_test {
|
|||
let test_out_dir = assert_fs::TempDir::new()?;
|
||||
let test_out = PathBuf::new().join(&test_out_dir).join("out.csv");
|
||||
|
||||
// 1st file
|
||||
let mut cmd = Command::cargo_bin("psb-qaqc-parse")?;
|
||||
cmd.current_dir("tests")
|
||||
.arg("./example_logs/valid/20240620_083537.log")
|
||||
.arg("./example_logs/valid/20240720_171418.log")
|
||||
.arg(test_out.as_path())
|
||||
.assert()
|
||||
.success()
|
||||
.stdout(predicate::str::contains("Creating new file"));
|
||||
|
||||
// 2nd file
|
||||
let mut cmd = Command::cargo_bin("psb-qaqc-parse")?;
|
||||
cmd.current_dir("tests")
|
||||
.arg("./example_logs/valid/20240720_171418.log")
|
||||
.arg(test_out.as_path())
|
||||
.assert()
|
||||
.success();
|
||||
|
||||
Ok(())
|
||||
}
|
||||
|
||||
|
@ -28,7 +37,7 @@ mod integrated_test {
|
|||
|
||||
let mut cmd = Command::cargo_bin("psb-qaqc-parse")?;
|
||||
cmd.current_dir("tests")
|
||||
.arg("./example_logs/valid/20240620_093537.log")
|
||||
.arg("./example_logs/valid/20240720_171419.log")
|
||||
.arg(test_out.as_path())
|
||||
.assert()
|
||||
.success()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue