Signed-off-by: kjuulh <contact@kjuulh.io>
This commit is contained in:
parent
4c7ea7dae6
commit
14ccba6a7e
@ -16,6 +16,13 @@ fn test_vcs_get_noop() {
|
|||||||
#[traced_test]
|
#[traced_test]
|
||||||
fn test_vcs_get_git_found() {
|
fn test_vcs_get_git_found() {
|
||||||
let testdata = get_test_data_path("git-found");
|
let testdata = get_test_data_path("git-found");
|
||||||
|
if let Err(e) = std::process::Command::new("git")
|
||||||
|
.arg("init")
|
||||||
|
.current_dir(&testdata)
|
||||||
|
.output()
|
||||||
|
{
|
||||||
|
eprintln!("{e}");
|
||||||
|
}
|
||||||
let git = VcsClient::new_git(&testdata, None::<String>, None::<String>, "".into()).unwrap();
|
let git = VcsClient::new_git(&testdata, None::<String>, None::<String>, "".into()).unwrap();
|
||||||
assert_eq!(
|
assert_eq!(
|
||||||
git,
|
git,
|
||||||
|
Loading…
Reference in New Issue
Block a user