Skip to content

Commit

Permalink
fix[ENTESB-12540]: #41 Fix test execution when no settings file is pr…
Browse files Browse the repository at this point in the history
…ovided
  • Loading branch information
christophd committed Feb 21, 2020
1 parent 666f1b0 commit 0ed46f2
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions pkg/cmd/test.go
Original file line number Diff line number Diff line change
Expand Up @@ -202,13 +202,12 @@ func (o *testCmdOptions) newTestSettings() (*v1alpha1.SettingsSpec, error) {
return &settings, nil
}

rawName := o.settings
settingsFileName := kubernetes.SanitizeFileName(rawName)

if settingsFileName == "" {
if o.settings == "" {
return nil, nil
}

rawName := o.settings
settingsFileName := kubernetes.SanitizeFileName(rawName)
configData, err := o.loadData(rawName)

if err != nil {
Expand Down

0 comments on commit 0ed46f2

Please sign in to comment.