mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-03 01:06:27 +00:00
don't panic inside e2e test
This commit is contained in:
parent
e973b05f89
commit
2c23db7311
@ -508,7 +508,9 @@ func assertFilesContain(ctx context.Context, fileNames []string, fileDir string,
|
|||||||
// grab logs from all the containers
|
// grab logs from all the containers
|
||||||
for _, container := range pod.Spec.Containers {
|
for _, container := range pod.Spec.Containers {
|
||||||
logs, err := e2epod.GetPodLogs(ctx, client, pod.Namespace, pod.Name, container.Name)
|
logs, err := e2epod.GetPodLogs(ctx, client, pod.Namespace, pod.Name, container.Name)
|
||||||
framework.ExpectNoError(err)
|
if err != nil {
|
||||||
|
return false, fmt.Errorf("unexpected error getting pod client logs for %s: %v", container.Name, err)
|
||||||
|
}
|
||||||
framework.Logf("Pod client logs for %s: %s", container.Name, logs)
|
framework.Logf("Pod client logs for %s: %s", container.Name, logs)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user