mirror of
https://github.com/qwjyh/xdbm
synced 2025-02-23 19:47:06 +09:00
debug(CI): git init test
This commit is contained in:
parent
15da3a1c8a
commit
8c38448337
1 changed files with 18 additions and 2 deletions
20
tests/cli.rs
20
tests/cli.rs
|
@ -42,8 +42,24 @@ mod integrated_test {
|
||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn git_config() -> Result<()> {
|
fn git_init() -> Result<()> {
|
||||||
let p = std::process::Command::new("git")
|
let p = std::process::Command::new("git init")
|
||||||
|
.spawn()
|
||||||
|
.context("git spawn")?
|
||||||
|
.wait()
|
||||||
|
.context("running git failed")?
|
||||||
|
.to_string();
|
||||||
|
eprintln!("{}", p);
|
||||||
|
|
||||||
|
let p = std::process::Command::new("git config --list")
|
||||||
|
.spawn()
|
||||||
|
.context("git spawn")?
|
||||||
|
.wait()
|
||||||
|
.context("running git failed")?
|
||||||
|
.to_string();
|
||||||
|
eprintln!("{}", p);
|
||||||
|
|
||||||
|
let p = std::process::Command::new("git config --list --local")
|
||||||
.spawn()
|
.spawn()
|
||||||
.context("git spawn")?
|
.context("git spawn")?
|
||||||
.wait()
|
.wait()
|
||||||
|
|
Loading…
Reference in a new issue