From 15da3a1c8a9b66dc9ee409c51cf5e7840a7727a5 Mon Sep 17 00:00:00 2001 From: qwjyh Date: Tue, 4 Feb 2025 03:43:59 +0900 Subject: [PATCH] debug(CI): git config --- tests/cli.rs | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/tests/cli.rs b/tests/cli.rs index e973cba..e307225 100644 --- a/tests/cli.rs +++ b/tests/cli.rs @@ -41,6 +41,18 @@ mod integrated_test { Ok(()) } + #[test] + fn git_config() -> Result<()> { + let p = std::process::Command::new("git") + .spawn() + .context("git spawn")? + .wait() + .context("running git failed")? + .to_string(); + eprintln!("{}", p); + Ok(()) + } + #[test] fn single_device() -> Result<()> { let config_dir = assert_fs::TempDir::new()?; @@ -52,6 +64,7 @@ mod integrated_test { .arg("init") .arg("testdev"); cmd.assert().success().stdout(predicate::str::contains("")); + eprintln!("{:?}", fs::read_dir(config_dir.path())?.collect::>()); assert_eq!( std::fs::read_to_string(config_dir.path().join("devname"))?, "testdev\n"