github.com/containers/podman/v4@v4.9.4/contrib/cirrus/win-podman-machine-main.ps1 (about)

     1  #!/usr/bin/env powershell
     2  
     3  . $PSScriptRoot\win-lib.ps1
     4  
     5  Set-Location "$ENV:CIRRUS_WORKING_DIR\repo"
     6  
     7  Write-Host "Saving selection of CI env. vars."
     8  # Env. vars will not pass through win-sess-launch.ps1
     9  Get-ChildItem -Path "Env:\*" -include @("PATH", "Chocolatey*", "CIRRUS*", "TEST_*", "CI_*") `
    10    | Export-CLIXML "$ENV:TEMP\envars.xml"
    11  
    12  # Recent versions of WSL are packaged as a Windows store app running in
    13  # an appX container, which is incompatible with non-interactive
    14  # session 0 execution (where the cirrus agent runs).
    15  # Run verification under an interactive session instead.
    16  Write-Host "Spawning new session to execute $PSScriptRoot\win-podman-machine-test.ps1"
    17  # Can't use Run-Command(), would need overly-complex nested quoting
    18  powershell.exe -File "$PSScriptRoot\win-sess-launch.ps1" `
    19                       "$PSScriptRoot\win-podman-machine-test.ps1"
    20  Check-Exit