new: add interactive command to add master log to database

- old add-master-log is now convert-master-log
- add-master-log is now interactive
- add-master-log is not well tested
This commit is contained in:
Wataru Otsubo 2024-09-10 23:01:20 +09:00
parent 7fe5218d39
commit 2dc790f9a8
4 changed files with 254 additions and 6 deletions

View file

@ -20,7 +20,7 @@ mod integrated_test {
// 1st file
let mut cmd = Command::cargo_bin("psb-qaqc")?;
cmd.current_dir("tests")
.arg("add-master-log")
.arg("convert-master-log")
.arg("./example_logs/valid/44.log")
.arg(test_out.as_path())
.assert()
@ -49,7 +49,7 @@ mod integrated_test {
// 2nd file
let mut cmd = Command::cargo_bin("psb-qaqc")?;
cmd.current_dir("tests")
.arg("add-master-log")
.arg("convert-master-log")
.arg("./example_logs/valid/20.log")
.arg(test_out.as_path())
.assert()
@ -77,7 +77,7 @@ mod integrated_test {
let mut cmd = Command::cargo_bin("psb-qaqc")?;
cmd.current_dir(&test_out_dir)
.arg("add-master-log")
.arg("convert-master-log")
.arg("84.log")
.assert()
.success()