mirror of
https://github.com/containers/podman.git
synced 2025-11-29 09:37:38 +08:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user