Skip to content

Commit 356ebd8

Browse files
committed
fixup: setup_test.go
1 parent 4386be4 commit 356ebd8

File tree

1 file changed

+16
-4
lines changed

1 file changed

+16
-4
lines changed

cmd/sbctl/setup_test.go

+16-4
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,14 @@ func TestSetup(t *testing.T) {
3939

4040
// Include test file into our file config
4141
conf.Files = []*config.FileConfig{
42-
{"/boot/test.efi", "/boot/new.efi"},
43-
{"/boot/something.efi", ""},
42+
{
43+
Path: "/boot/test.efi",
44+
Output: "/boot/new.efi",
45+
},
46+
{
47+
Path: "/boot/something.efi",
48+
Output: "",
49+
},
4450
}
4551

4652
state := &config.State{
@@ -136,8 +142,14 @@ func TestSetupTPMKeys(t *testing.T) {
136142

137143
// Include test file into our file config
138144
conf.Files = []*config.FileConfig{
139-
{"/boot/test.efi", "/boot/new.efi"},
140-
{"/boot/something.efi", ""},
145+
{
146+
Path: "/boot/test.efi",
147+
Output: "/boot/new.efi",
148+
},
149+
{
150+
Path: "/boot/something.efi",
151+
Output: "",
152+
},
141153
}
142154

143155
rwc, err := simulator.OpenSimulator()

0 commit comments

Comments
 (0)