mirror of
https://github.com/microsoft/WSL.git
synced 2025-12-11 04:35:57 -06:00
Update setup-vm-for-tests.ps1 to copy the test distribution from the nuget package (#13149)
This commit is contained in:
parent
e391e7854a
commit
9e09fe791c
@ -27,8 +27,6 @@
|
|||||||
Absolute Path to a folder on the the VM to copy taef binaries. Defaults to "C:\Taef".
|
Absolute Path to a folder on the the VM to copy taef binaries. Defaults to "C:\Taef".
|
||||||
.PARAMETER SkipDistro
|
.PARAMETER SkipDistro
|
||||||
Skip copying over the distro.
|
Skip copying over the distro.
|
||||||
.PARAMETER TestDistroName
|
|
||||||
Name of test distro filename to be appended to the path. Auto filled if left empty.
|
|
||||||
.PARAMETER TestDistroPath
|
.PARAMETER TestDistroPath
|
||||||
Path to the distro image to import and use for testing, if needed. Auto filled if left empty.
|
Path to the distro image to import and use for testing, if needed. Auto filled if left empty.
|
||||||
#>
|
#>
|
||||||
@ -48,7 +46,6 @@ param (
|
|||||||
[string]$RemoteFolder = "C:\Package",
|
[string]$RemoteFolder = "C:\Package",
|
||||||
[string]$TaefFolder = "C:\Taef",
|
[string]$TaefFolder = "C:\Taef",
|
||||||
[switch]$SkipDistro,
|
[switch]$SkipDistro,
|
||||||
[string]$TestDistroName,
|
|
||||||
[string]$TestDistroPath
|
[string]$TestDistroPath
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -96,13 +93,9 @@ $Platform = switch ($Arch) {
|
|||||||
default { throw "Architecture $Arch unknown" }
|
default { throw "Architecture $Arch unknown" }
|
||||||
}
|
}
|
||||||
|
|
||||||
if ([string]::IsNullOrEmpty($TestDistroName)) {
|
|
||||||
# Be kind, rewind, update for amd64 and arm64!
|
|
||||||
$TestDistroName = "debian_1.12.8.0.tar.xz"
|
|
||||||
}
|
|
||||||
|
|
||||||
if ([string]::IsNullOrEmpty($TestDistroPath)) {
|
if ([string]::IsNullOrEmpty($TestDistroPath)) {
|
||||||
$TestDistroPath = "\\sesdfs.corp.microsoft.com\1windows\TestContent\CORE\Base\HYP\LOW\lxss\$Arch\distros\$TestDistroName"
|
$TestDistroVersion = (Select-Xml -Path "$PSScriptRoot\..\..\packages.config" -XPath '/packages/package[@id=''Microsoft.WSL.TestDistro'']/@version').Node.Value
|
||||||
|
$TestDistroPath = "$PSScriptRoot\..\..\packages\Microsoft.WSL.TestDistro.$TestDistroVersion\test_distro.tar.xz"
|
||||||
}
|
}
|
||||||
|
|
||||||
if ([string]::IsNullOrEmpty($ArtifactFolder)) {
|
if ([string]::IsNullOrEmpty($ArtifactFolder)) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user