integration: look for the "hf" tool in integration tests (#16765)

The "huggingface-cli" tool is deprecated, so only try to use the "hf" tool.
This commit is contained in:
Patrick Devine
2026-06-16 11:04:54 -07:00
committed by GitHub
parent bbb40a0a6c
commit 9e4ed74efe

View File

@@ -48,10 +48,8 @@ func skipIfRemote(t *testing.T) {
// findHFCLI returns the path to the HuggingFace CLI, or "" if not found.
func findHFCLI() string {
for _, name := range []string{"huggingface-cli", "hf"} {
if p, err := exec.LookPath(name); err == nil {
return p
}
if p, err := exec.LookPath("hf"); err == nil {
return p
}
return ""
}