Skip to content

Commit 3063256

Browse files
author
Per Goncalves da Silva
committed
Separate fixture building
Signed-off-by: Per Goncalves da Silva <[email protected]>
1 parent 60d07e1 commit 3063256

File tree

3 files changed

+394
-87
lines changed

3 files changed

+394
-87
lines changed

openshift/tests-extension/cmd/main.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ https://github.com/openshift-eng/openshift-tests-extension/blob/main/cmd/example
99
package main
1010

1111
import (
12+
"context"
1213
"fmt"
1314
"os"
1415
"strings"
@@ -20,6 +21,7 @@ import (
2021
"github.com/spf13/cobra"
2122

2223
"github.com/openshift/operator-framework-operator-controller/openshift/tests-extension/pkg/env"
24+
"github.com/openshift/operator-framework-operator-controller/openshift/tests-extension/pkg/fixtures"
2325
_ "github.com/openshift/operator-framework-operator-controller/openshift/tests-extension/test"
2426
_ "github.com/openshift/operator-framework-operator-controller/openshift/tests-extension/test/qe/specs"
2527
exutil "github.com/openshift/operator-framework-operator-controller/openshift/tests-extension/test/qe/util"
@@ -239,6 +241,10 @@ func main() {
239241
specs.AddBeforeAll(func() {
240242
env.Init()
241243
exutil.InitClusterEnv()
244+
fixtures.BuildFixtures(context.Background())
245+
})
246+
specs.AddAfterAll(func() {
247+
fixtures.TearDownFixtures(context.Background())
242248
})
243249

244250
ext.AddSpecs(specs)

0 commit comments

Comments
 (0)