File tree 1 file changed +5
-1
lines changed
1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -31,6 +31,7 @@ import (
31
31
"github.com/onsi/ginkgo/v2"
32
32
"github.com/pkg/errors"
33
33
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
34
+ kerrors "k8s.io/apimachinery/pkg/util/errors"
34
35
"k8s.io/apimachinery/pkg/util/rand"
35
36
"k8s.io/client-go/discovery"
36
37
"k8s.io/client-go/tools/clientcmd"
@@ -204,7 +205,10 @@ func Run(ctx context.Context, input RunInput) error {
204
205
RestartPolicy : dockercontainer .RestartPolicyDisabled ,
205
206
}, ginkgo .GinkgoWriter )
206
207
if err != nil {
207
- return errors .Wrap (err , "Unable to run conformance tests" )
208
+ return kerrors .NewAggregate ([]error {
209
+ errors .Wrap (err , "Unable to run conformance tests" ),
210
+ framework .GatherJUnitReports (reportDir , input .ArtifactsDirectory ),
211
+ })
208
212
}
209
213
return framework .GatherJUnitReports (reportDir , input .ArtifactsDirectory )
210
214
}
You can’t perform that action at this time.
0 commit comments