mirror of
https://seed.radicle.dev/rad:z3gqcJUoA1n9HaHKufZs5FCSGazv5.git
synced 2026-11-16 00:00:37 +08:00
cli-test: Cheat to find coreutils on Windows
This commit is contained in:
committed by
Fintan Halpenny
parent
4894657bcb
commit
8fbdd46ce4
@@ -535,6 +535,17 @@ fn bins(cwd: PathBuf) -> Vec<PathBuf> {
|
||||
)
|
||||
}
|
||||
|
||||
#[cfg(windows)]
|
||||
{
|
||||
// Radicle CLI tests rely on various Unix coreutils
|
||||
// (such as `ls` and `touch`) being available.
|
||||
// On Windows, it is very likely that we can find them in the
|
||||
// following location.
|
||||
// Note that adding this path to the end of `$PATH` causes
|
||||
// no harm, even if the directory does not exist.
|
||||
bins.push(PathBuf::from(r#"C:\Program Files\Git\usr\bin"#));
|
||||
}
|
||||
|
||||
// Add current working directory to `$PATH`,
|
||||
// this makes it more convenient to execute scripts during testing.
|
||||
bins.push(cwd);
|
||||
|
||||
Reference in New Issue
Block a user