mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-26 05:03:09 +00:00
Fixes kubectl skew test failure when using kubectl.sh
This commit is contained in:
parent
4ff0af821a
commit
adea540a5b
@ -593,7 +593,7 @@ var _ = framework.KubeDescribe("Kubectl client", func() {
|
|||||||
// we need the actual kubectl binary, not the script wrapper
|
// we need the actual kubectl binary, not the script wrapper
|
||||||
kubectlPathNormalizer := exec.Command("which", kubectlPath)
|
kubectlPathNormalizer := exec.Command("which", kubectlPath)
|
||||||
if strings.HasSuffix(kubectlPath, "kubectl.sh") {
|
if strings.HasSuffix(kubectlPath, "kubectl.sh") {
|
||||||
kubectlPathNormalizer = exec.Command("sh", "-c", kubectlPath, "path")
|
kubectlPathNormalizer = exec.Command(kubectlPath, "path")
|
||||||
}
|
}
|
||||||
kubectlPathNormalized, err := kubectlPathNormalizer.Output()
|
kubectlPathNormalized, err := kubectlPathNormalizer.Output()
|
||||||
framework.ExpectNoError(err)
|
framework.ExpectNoError(err)
|
||||||
|
Loading…
Reference in New Issue
Block a user