Skip to content

Commit

Permalink
[e2e] check ctx log errors
Browse files Browse the repository at this point in the history
  • Loading branch information
pducolin committed Dec 27, 2024
1 parent 661cf82 commit 8016faa
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions test/new-e2e/tests/gpu/provisioner.go
Original file line number Diff line number Diff line change
Expand Up @@ -157,8 +157,14 @@ func gpuInstanceProvisioner(params *provisionerParams) provisioners.Provisioner
pulumi.All(dockerCudaValidateCmd.Stdout, dockerCudaValidateCmd.Stderr).ApplyT(func(outputs []string) error {
stdout := outputs[0]
stderr := outputs[1]
ctx.Log.Info(fmt.Sprintf("Docker CUDA validation stdout: %s", stdout), nil)
ctx.Log.Info(fmt.Sprintf("Docker CUDA validation stderr: %s", stderr), nil)
err := ctx.Log.Info(fmt.Sprintf("Docker CUDA validation stdout: %s", stdout), nil)
if err != nil {
return err
}
err = ctx.Log.Info(fmt.Sprintf("Docker CUDA validation stderr: %s", stderr), nil)
if err != nil {
return err
}
return nil
})

Expand Down

0 comments on commit 8016faa

Please sign in to comment.