mirror of
https://gitlab.cern.ch/wotsubo/psboard-qaqc-postprocess.git
synced 2025-07-01 17:19:29 +09:00
update: organize commands to subcommands and rename bin
- existing functions are moved to subcommand `add-master-log`
This commit is contained in:
parent
bdb415e6e6
commit
a94a871e52
5 changed files with 81 additions and 56 deletions
|
@ -15,8 +15,9 @@ mod integrated_test {
|
|||
let test_out = PathBuf::new().join(&test_out_dir).join("out.csv");
|
||||
|
||||
// 1st file
|
||||
let mut cmd = Command::cargo_bin("psb-qaqc-parse")?;
|
||||
let mut cmd = Command::cargo_bin("psb-qaqc")?;
|
||||
cmd.current_dir("tests")
|
||||
.arg("add-master-log")
|
||||
.arg("./example_logs/valid/20240720_171418.log")
|
||||
.arg(test_out.as_path())
|
||||
.assert()
|
||||
|
@ -33,8 +34,9 @@ mod integrated_test {
|
|||
}
|
||||
|
||||
// 2nd file
|
||||
let mut cmd = Command::cargo_bin("psb-qaqc-parse")?;
|
||||
let mut cmd = Command::cargo_bin("psb-qaqc")?;
|
||||
cmd.current_dir("tests")
|
||||
.arg("add-master-log")
|
||||
.arg("./example_logs/valid/20240720_171418.log")
|
||||
.arg(test_out.as_path())
|
||||
.assert()
|
||||
|
@ -48,8 +50,9 @@ mod integrated_test {
|
|||
let test_out_dir = assert_fs::TempDir::new()?;
|
||||
let test_out = PathBuf::new().join(&test_out_dir).join("out.csv");
|
||||
|
||||
let mut cmd = Command::cargo_bin("psb-qaqc-parse")?;
|
||||
let mut cmd = Command::cargo_bin("psb-qaqc")?;
|
||||
cmd.current_dir("tests")
|
||||
.arg("add-master-log")
|
||||
.arg("./example_logs/valid/20240720_171419.log")
|
||||
.arg(test_out.as_path())
|
||||
.assert()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue