From 8c38448337afe55e5cd938136cc402713ac26a62 Mon Sep 17 00:00:00 2001 From: qwjyh Date: Tue, 4 Feb 2025 03:48:47 +0900 Subject: [PATCH] debug(CI): git init test --- tests/cli.rs | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/tests/cli.rs b/tests/cli.rs index e307225..15f06af 100644 --- a/tests/cli.rs +++ b/tests/cli.rs @@ -42,8 +42,24 @@ mod integrated_test { } #[test] - fn git_config() -> Result<()> { - let p = std::process::Command::new("git") + fn git_init() -> Result<()> { + 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() .context("git spawn")? .wait()