mirror of
https://github.com/containers/podman.git
synced 2025-11-01 10:45:52 +08:00
Fix regression in e2e machine test suite
A simple regression was introduced to the test suite that overrode the default image for hyperv testing. Signed-off-by: Brent Baude <bbaude@redhat.com>
This commit is contained in:
@ -33,7 +33,8 @@ env:
|
|||||||
DEBIAN_NAME: "debian-13"
|
DEBIAN_NAME: "debian-13"
|
||||||
|
|
||||||
# Image identifiers
|
# Image identifiers
|
||||||
IMAGE_SUFFIX: "c20231116t174419z-f39f38d13"
|
IMAGE_SUFFIX: "c20231206t225809z-f39f38d13"
|
||||||
|
|
||||||
|
|
||||||
# EC2 images
|
# EC2 images
|
||||||
FEDORA_AMI: "fedora-aws-${IMAGE_SUFFIX}"
|
FEDORA_AMI: "fedora-aws-${IMAGE_SUFFIX}"
|
||||||
|
|||||||
@ -4,6 +4,13 @@
|
|||||||
|
|
||||||
Set-Location "$ENV:CIRRUS_WORKING_DIR\repo"
|
Set-Location "$ENV:CIRRUS_WORKING_DIR\repo"
|
||||||
|
|
||||||
|
$GvTargetDir = "C:\Program Files\Redhat\Podman\"
|
||||||
|
|
||||||
|
#Expand-Archive -Path "podman-remote-release-windows_amd64.zip" -DestinationPath $GvTargetDir
|
||||||
|
|
||||||
|
New-Item -Path $GvTargetDir -ItemType "directory"
|
||||||
|
Copy-Item "bin/windows/gvproxy.exe" -Destination $GvTargetDir
|
||||||
|
|
||||||
Write-Host "Saving selection of CI env. vars."
|
Write-Host "Saving selection of CI env. vars."
|
||||||
# Env. vars will not pass through win-sess-launch.ps1
|
# Env. vars will not pass through win-sess-launch.ps1
|
||||||
Get-ChildItem -Path "Env:\*" -include @("PATH", "Chocolatey*", "CIRRUS*", "TEST_*", "CI_*") `
|
Get-ChildItem -Path "Env:\*" -include @("PATH", "Chocolatey*", "CIRRUS*", "TEST_*", "CI_*") `
|
||||||
|
|||||||
@ -234,3 +234,17 @@ func isVmtype(vmType machine.VMType) bool {
|
|||||||
func isWSL() bool {
|
func isWSL() bool {
|
||||||
return isVmtype(machine.WSLVirt)
|
return isVmtype(machine.WSLVirt)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func getFCOSDownloadLocation(p machine.VirtProvider) string {
|
||||||
|
dd, err := p.NewDownload("")
|
||||||
|
if err != nil {
|
||||||
|
Fail("unable to create new download")
|
||||||
|
}
|
||||||
|
|
||||||
|
fcd, err := dd.GetFCOSDownload(defaultStream)
|
||||||
|
if err != nil {
|
||||||
|
Fail("unable to get virtual machine image")
|
||||||
|
}
|
||||||
|
|
||||||
|
return fcd.Location
|
||||||
|
}
|
||||||
|
|||||||
@ -6,21 +6,10 @@ import (
|
|||||||
"os/exec"
|
"os/exec"
|
||||||
|
|
||||||
"github.com/containers/podman/v4/pkg/machine"
|
"github.com/containers/podman/v4/pkg/machine"
|
||||||
. "github.com/onsi/ginkgo/v2"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
func getDownloadLocation(p machine.VirtProvider) string {
|
func getDownloadLocation(p machine.VirtProvider) string {
|
||||||
dd, err := p.NewDownload("")
|
return getFCOSDownloadLocation(p)
|
||||||
if err != nil {
|
|
||||||
Fail("unable to create new download")
|
|
||||||
}
|
|
||||||
|
|
||||||
fcd, err := dd.GetFCOSDownload(defaultStream)
|
|
||||||
if err != nil {
|
|
||||||
Fail("unable to get virtual machine image")
|
|
||||||
}
|
|
||||||
|
|
||||||
return fcd.Location
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func pgrep(n string) (string, error) {
|
func pgrep(n string) (string, error) {
|
||||||
|
|||||||
@ -12,7 +12,10 @@ import (
|
|||||||
|
|
||||||
const podmanBinary = "../../../bin/windows/podman.exe"
|
const podmanBinary = "../../../bin/windows/podman.exe"
|
||||||
|
|
||||||
func getDownloadLocation(_ machine.VirtProvider) string {
|
func getDownloadLocation(p machine.VirtProvider) string {
|
||||||
|
if p.VMType() == machine.HyperVVirt {
|
||||||
|
return getFCOSDownloadLocation(p)
|
||||||
|
}
|
||||||
fd, err := wsl.NewFedoraDownloader(machine.WSLVirt, "", defaultStream.String())
|
fd, err := wsl.NewFedoraDownloader(machine.WSLVirt, "", defaultStream.String())
|
||||||
if err != nil {
|
if err != nil {
|
||||||
Fail("unable to get WSL virtual image")
|
Fail("unable to get WSL virtual image")
|
||||||
|
|||||||
@ -61,9 +61,6 @@ var _ = BeforeSuite(func() {
|
|||||||
downloadLocation = getDownloadLocation(testProvider)
|
downloadLocation = getDownloadLocation(testProvider)
|
||||||
// we cannot simply use OS here because hyperv uses fcos; so WSL is just
|
// we cannot simply use OS here because hyperv uses fcos; so WSL is just
|
||||||
// special here
|
// special here
|
||||||
if testProvider.VMType() != machine.WSLVirt {
|
|
||||||
downloadLocation = getDownloadLocation(testProvider)
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
compressionExtension := fmt.Sprintf(".%s", testProvider.Compression().String())
|
compressionExtension := fmt.Sprintf(".%s", testProvider.Compression().String())
|
||||||
|
|||||||
Reference in New Issue
Block a user