test: Bypass upstream suite before/after because they are not useful
The upstream helpers for suites don't do any behavior we require.
Omit them instead of including them.
@@ -13,6 +13,7 @@ import (
"syscall"
"time"
+ "github.com/onsi/ginkgo"
"github.com/spf13/cobra"
"github.com/spf13/pflag"
@@ -398,6 +399,10 @@ func newRunTestCommand() *cobra.Command {
return err
}
+ // Ignore the upstream suite behavior within test execution
+ ginkgo.GlobalSuite().ClearBeforeSuiteNode()
+ ginkgo.GlobalSuite().ClearAfterSuiteNode()
+
config, err := decodeProvider(os.Getenv("TEST_PROVIDER"), testOpt.DryRun, false)
if err != nil {
return err
