From 3be5e5410c5f64971cb20dc0af51cc1ef8c82ac6 Mon Sep 17 00:00:00 2001 From: Marco Molteni Date: Fri, 27 Jun 2025 17:03:48 +0200 Subject: [PATCH] fix: make the example test in the README compile I think that the first breakage has been added in b951d15 and then in afd7b1d. Extracting the example in a file and then running the test: $ go test # github.com/anatol/vmtest/examples [github.com/anatol/vmtest/examples.test] ./simple_test.go:27:34: too few values in struct literal of type vmtest.QemuDisk --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 0e0d05e..88e0ca8 100644 --- a/README.md +++ b/README.md @@ -33,7 +33,7 @@ func TestBootCurrentLinuxKernelInQemu(t *testing.T) { "root=/dev/mapper/cryptroot", }, Disks: []vmtest.QemuDisk{ - {"testdata/luksv2.disk", "raw"}, + {Path: "testdata/luksv2.disk", Format: "raw"}, }, Verbose: testing.Verbose(), Timeout: 20 * time.Second,