| commit | 33306eb263f4124f7dc0d8528bdcf5b2de79e604 | [log] [tgz] |
|---|---|---|
| author | Tim Windelschmidt <tim@monogon.tech> | Thu Apr 11 01:39:48 2024 +0200 |
| committer | Tim Windelschmidt <tim@monogon.tech> | Mon Apr 15 21:31:42 2024 +0000 |
| tree | 988b341b61cda93f4ae451d3ba0cfc827efd2520 | |
| parent | 9b2c15699524ad21a12c64d245f6fe25252a2afd [diff] |
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.") }