Skip to content

Commit

Permalink
Add version command output to error in e2e tests (#7521)
Browse files Browse the repository at this point in the history
Without this, the command output is swallowed and it only returns
"exit status 255".
  • Loading branch information
g-gaston authored Feb 8, 2024
1 parent 9876761 commit b3876c2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/framework/eksa_versions.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ import (
"encoding/json"
"log"

"github.com/pkg/errors"

"github.com/aws/eks-anywhere/pkg/semver"
)

Expand Down Expand Up @@ -38,7 +40,7 @@ func localEKSAVersionCommand() (versionCommandOutput, error) {
}
out, err := cmd.CombinedOutput()
if err != nil {
return versionCommandOutput{}, err
return versionCommandOutput{}, errors.Errorf("failed to run eksctl anywhere version: %v, output: %s", err, out)
}

versionOut := &versionCommandOutput{}
Expand Down

0 comments on commit b3876c2

Please sign in to comment.