Fix upgrade dry-run.
Fixes
@@ -77,6 +77,7 @@ var upgradeSuites = testSuites{
// upgradeTestPreSuite validates the test options and gathers data useful prior to launching the upgrade and it's
// related tests.
func upgradeTestPreSuite(opt *runOptions) error {
+ if !opt.DryRun {
testOpt := ginkgo.NewTestOptions(os.Stdout, os.Stderr)
config, err := decodeProvider(os.Getenv("TEST_PROVIDER"), testOpt.DryRun, false, nil)
if err != nil {
@@ -90,6 +91,7 @@ func upgradeTestPreSuite(opt *runOptions) error {
if err := upgrade.GatherPreUpgradeResourceCounts(); err != nil {
return errors.Wrap(err, "error gathering preupgrade resource counts")
}
+ }
// Upgrade test output is important for debugging because it shows linear progress
// and when the CVO hangs.
