Skip to content

Commit

Permalink
[qe] fix small bug in integration test BeforeSuite func
Browse files Browse the repository at this point in the history
  • Loading branch information
lilyLuLiu committed May 29, 2024
1 parent 813c80a commit 306dfd5
Showing 1 changed file with 3 additions and 15 deletions.
18 changes: 3 additions & 15 deletions test/integration/testsuite_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ var userHome string
var versionInfo VersionAnswer

var bundlePath string
var ginkgoOpts string
var pullSecretPath string

func TestTest(t *testing.T) {
Expand Down Expand Up @@ -81,20 +80,9 @@ var _ = BeforeSuite(func() {
Expect(bundlePath).To(BeAnExistingFile())
}

ginkgoOpts = os.Getenv("GINKGO_OPTS")
if err != nil {

logrus.Infof("Error: Could not read GINKGO_OPTS.")
logrus.Infof("%v", err)
}
Expect(err).NotTo(HaveOccurred())

pullSecretPath = os.Getenv("PULL_SECRET_PATH") // this env var should contain location of pull-secret file
if err != nil {

logrus.Infof("Error: You need to set PULL_SECRET_PATH to find CRC useful.")
logrus.Infof("%v", err)
if pullSecretPath == "" {
logrus.Infof("Error: You need to set PULL_SECRET_PATH for CRC to function properly.")
}
Expect(err).NotTo(HaveOccurred())

Expect(pullSecretPath).NotTo(BeEmpty())
})

0 comments on commit 306dfd5

Please sign in to comment.