blueprint: don't set omitempty for toml groups and modules

The integration tests expect the empty arrays to be there.
This commit is contained in:
Lars Karlitski 2019-12-08 00:01:25 +01:00 committed by Tom Gundersen
parent 0718766fbc
commit ea70d9dfc5
2 changed files with 8 additions and 9 deletions

View file

@ -170,6 +170,8 @@ func TestBlueprintsInfoToml(t *testing.T) {
Packages: []blueprint.Package{
{"httpd", "2.4.*"},
},
Groups: []blueprint.Group{},
Modules: []blueprint.Package{},
}
if diff := cmp.Diff(got, expected); diff != "" {
t.Fatalf("received unexpected blueprint: %s", diff)