mirror of
https://github.com/qwjyh/xdbm
synced 2025-04-20 03:35:55 +09:00
add(test): command backup after done doesn't include ---
This commit is contained in:
parent
d743e607ac
commit
315a75424a
1 changed files with 15 additions and 0 deletions
15
tests/cli.rs
15
tests/cli.rs
|
@ -448,6 +448,21 @@ mod integrated_test {
|
||||||
.assert()
|
.assert()
|
||||||
.success();
|
.success();
|
||||||
|
|
||||||
|
// backup list after backup done
|
||||||
|
Command::cargo_bin("xdbm")?
|
||||||
|
.arg("-c")
|
||||||
|
.arg(config_dir_2.path())
|
||||||
|
.arg("backup")
|
||||||
|
.arg("list")
|
||||||
|
.assert()
|
||||||
|
.success()
|
||||||
|
.stdout(
|
||||||
|
predicate::str::contains("foodoc")
|
||||||
|
.and(predicate::str::contains("nas"))
|
||||||
|
.and(predicate::str::contains("gdrive_docs"))
|
||||||
|
.and(predicate::str::contains("---").not()),
|
||||||
|
);
|
||||||
|
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue