Documentation ¶
Index ¶
Constants ¶
View Source
const RandomTestSeed = 0
Variables ¶
This section is empty.
Functions ¶
func TestESP ¶ added in v0.104.0
func TestESP(t *testing.T, distros []distro.Distro, ptFunc func(i distro.ImageType) (*disk.PartitionTable, error))
TestESP checks whether all UEFI and hybrid images with a partition table have an ESP partition. It also checks the opposite, i.e. that legacy images don't have an ESP. This test is only performed on image types with a partition table, thus it doesn't run on e.g. installers and ostree commits. distros is a list of distros to test ptFunc is a function that returns an uncustomized partition table for a given image type. This proxy method is needed because the distro.ImageType interface doesn't provide a way to get a partition table.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.