mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-31 15:25:57 +00:00
Merge pull request #121636 from sairameshv/121444-fix
[Node E2E Tests] Minor fix to copy the required kubelet, service logs
This commit is contained in:
commit
8f163470ea
@ -208,7 +208,7 @@ func getTestArtifacts(host, testDir string) error {
|
||||
return fmt.Errorf("failed to create log directory %q: %w", logPath, err)
|
||||
}
|
||||
// Copy logs (if any) to artifacts/hostname
|
||||
if _, err := SSH(host, "ls", fmt.Sprintf("%s:%s/results/*.log", GetHostnameOrIP(host), testDir)); err == nil {
|
||||
if _, err := SSH(host, "ls", fmt.Sprintf("%s/results/*.log", testDir)); err == nil {
|
||||
if _, err := runSSHCommand(host, "scp", "-r", fmt.Sprintf("%s:%s/results/*.log", GetHostnameOrIP(host), testDir), logPath); err != nil {
|
||||
return err
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user