File tree 7 files changed +7
-12
lines changed
7 files changed +7
-12
lines changed Original file line number Diff line number Diff line change @@ -128,7 +128,5 @@ func TestDeployWithInCorrectConfigWithNoStatusCheck(t *testing.T) {
128
128
ns , _ , deleteNs := SetupNamespace (t )
129
129
defer deleteNs ()
130
130
131
- skaffold .Deploy ().InDir ("testdata/unstable-deployment" ).InNs (ns .Name ).RunOrFailOutput (t )
132
-
133
- skaffold .Delete ().InDir ("testdata/unstable-deployment" ).InNs (ns .Name ).RunOrFail (t )
131
+ skaffold .Deploy ().InDir ("testdata/unstable-deployment" ).InNs (ns .Name ).RunOrFail (t )
134
132
}
Original file line number Diff line number Diff line change @@ -389,7 +389,7 @@ func TestDev_WithKubecontextOverride(t *testing.T) {
389
389
env := []string {fmt .Sprintf ("KUBECONFIG=%s" , kubeconfig )}
390
390
391
391
// n.b. for the sake of this test the namespace must not be given explicitly
392
- skaffold .Run ("--kube-context" , kubecontext ).InDir (dir ).WithEnv (env ).RunOrFailOutput (t .T )
392
+ skaffold .Run ("--kube-context" , kubecontext ).InDir (dir ).WithEnv (env ).RunOrFail (t .T )
393
393
394
394
client .WaitForPodsReady (pods ... )
395
395
Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ func TestDiagnose(t *testing.T) {
43
43
}
44
44
for _ , test := range tests {
45
45
t .Run (test .name , func (t * testing.T ) {
46
- skaffold .Diagnose (test .args ... ).InDir (test .dir ).RunOrFailOutput (t )
46
+ skaffold .Diagnose (test .args ... ).InDir (test .dir ).RunOrFail (t )
47
47
})
48
48
}
49
49
}
Original file line number Diff line number Diff line change @@ -50,7 +50,7 @@ func TestHelmDeploy(t *testing.T) {
50
50
51
51
runArgs := []string {"--images" , "gcr.io/k8s-skaffold/skaffold-helm" }
52
52
53
- skaffold .Deploy (runArgs ... ).InDir (helmDir ).InNs (ns .Name ).WithEnv (env ).RunOrFailOutput (t )
53
+ skaffold .Deploy (runArgs ... ).InDir (helmDir ).InNs (ns .Name ).WithEnv (env ).RunOrFail (t )
54
54
55
55
client .WaitForDeploymentsToStabilize (depName )
56
56
Original file line number Diff line number Diff line change @@ -45,7 +45,7 @@ func TestPortForward(t *testing.T) {
45
45
defer deleteNs ()
46
46
47
47
dir := "examples/microservices"
48
- skaffold .Run ().InDir (dir ).InNs (ns .Name ).RunOrFailOutput (t )
48
+ skaffold .Run ().InDir (dir ).InNs (ns .Name ).RunOrFail (t )
49
49
50
50
cfg , err := kubectx .CurrentConfig ()
51
51
if err != nil {
Original file line number Diff line number Diff line change @@ -137,7 +137,7 @@ func TestRun(t *testing.T) {
137
137
ns , client , deleteNs := SetupNamespace (t )
138
138
defer deleteNs ()
139
139
140
- skaffold .Run (test .args ... ).WithConfig (test .filename ).InDir (test .dir ).InNs (ns .Name ).WithEnv (test .env ).RunOrFailOutput (t )
140
+ skaffold .Run (test .args ... ).WithConfig (test .filename ).InDir (test .dir ).InNs (ns .Name ).WithEnv (test .env ).RunOrFail (t )
141
141
142
142
client .WaitForPodsReady (test .pods ... )
143
143
client .WaitForDeploymentsToStabilize (test .deployments ... )
Original file line number Diff line number Diff line change @@ -154,10 +154,7 @@ func (b *RunBuilder) RunBackground(t *testing.T) context.CancelFunc {
154
154
// RunOrFail runs the skaffold command and fails the test
155
155
// if the command returns an error.
156
156
func (b * RunBuilder ) RunOrFail (t * testing.T ) {
157
- t .Helper ()
158
- if err := b .Run (t ); err != nil {
159
- t .Fatal (err )
160
- }
157
+ b .RunOrFailOutput (t )
161
158
}
162
159
163
160
// Run runs the skaffold command.
You can’t perform that action at this time.
0 commit comments