metropolis/installer/test: check for part table parse error

Change-Id: Ibd80c02dbb356c5d120b7787ae50dc487b253223
Reviewed-on: https://review.monogon.dev/c/monogon/+/2962
Reviewed-by: Lorenz Brun <lorenz@monogon.tech>
Tested-by: Jenkins CI
diff --git a/metropolis/installer/test/main.go b/metropolis/installer/test/main.go
index 56b1128..74a44cb 100644
--- a/metropolis/installer/test/main.go
+++ b/metropolis/installer/test/main.go
@@ -179,6 +179,9 @@
 	}
 	// Verify that GPT exists.
 	ti, err := image.GetPartitionTable()
+	if err != nil {
+		t.Fatalf("Couldn't read the installer image partition table: %s", err)
+	}
 	if ti.Type() != "gpt" {
 		t.Error("Couldn't verify that the installer image contains a GPT.")
 	}