fake images: windows hyperv

this pr is a follow on to #27493.  it adds support for hyperv "fake"
images and suggests a benefit in terms of test speed.  for hyperv, we
create a generic 4MB vhdx and stick it into the temp dir.  this saves us
from any image copy or compression.

i also followed up on a few comments Paul made about using windows|unix
instead of each platform.

Signed-off-by: Brent Baude <bbaude@redhat.com>
This commit is contained in:
Brent Baude
2025-11-11 14:39:45 -06:00
parent 1afe2ce6d3
commit d58dddee66
6 changed files with 60 additions and 29 deletions

View File

@@ -72,6 +72,9 @@ var _ = BeforeSuite(func() {
if pullError != nil {
Fail(fmt.Sprintf("failed to pull disk: %q", pullError))
}
fmt.Println("Running platform specific set-up")
initPlatform()
})
type timing struct {
@@ -96,6 +99,8 @@ var _ = SynchronizedAfterSuite(func() {}, func() {
for _, t := range timings {
GinkgoWriter.Printf("%s\t\t%f seconds\n", t.name, t.length.Seconds())
}
fmt.Println("Running platform specific cleanup")
cleanupPlatform()
})
// The config does not matter to much for our testing, however we