fix(burn-in): migrate Start-BurnInTest wrappers to Linux host paths
Replace Windows-hardcoded paths with Linux equivalents: - RepoUrl → local Gitea instance (10.10.20.11:3100/Simone/burnin-dummy) - TemplatePath/CloneBaseDir/ArtifactBaseDir/VmrunPath → /var/lib/ci/… - `$scriptDir\Test-CapacityBurnIn.ps1` → Join-Path $PSScriptRoot (cross-platform) - Remove `Split-Path -Parent $MyInvocation.MyCommand.Path` (redundant) Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -51,18 +51,16 @@ param(
|
|||||||
Set-StrictMode -Version Latest
|
Set-StrictMode -Version Latest
|
||||||
$ErrorActionPreference = 'Stop'
|
$ErrorActionPreference = 'Stop'
|
||||||
|
|
||||||
$scriptDir = Split-Path -Parent $MyInvocation.MyCommand.Path
|
|
||||||
|
|
||||||
$burnInParams = @{
|
$burnInParams = @{
|
||||||
RepoUrl = 'https://gitea.emulab.it/Simone/burnin-dummy.git'
|
RepoUrl = 'http://10.10.20.11:3100/Simone/burnin-dummy.git'
|
||||||
Branch = 'main'
|
Branch = 'main'
|
||||||
TemplatePath = 'F:\CI\Templates\LinuxBuild2404\LinuxBuild2404.vmx'
|
TemplatePath = '/var/lib/ci/templates/LinuxBuild2404/LinuxBuild2404.vmx'
|
||||||
SnapshotName = 'BaseClean-Linux'
|
SnapshotName = 'BaseClean-Linux'
|
||||||
CloneBaseDir = 'F:\CI\BuildVMs'
|
CloneBaseDir = '/var/lib/ci/build-vms/'
|
||||||
ArtifactBaseDir = 'F:\CI\Artifacts'
|
ArtifactBaseDir = '/var/lib/ci/artifacts/'
|
||||||
GuestCredentialTarget = 'BuildVMGuest'
|
GuestCredentialTarget = 'BuildVMGuest'
|
||||||
GiteaCredentialTarget = 'GiteaPAT'
|
GiteaCredentialTarget = 'GiteaPAT'
|
||||||
VmrunPath = 'C:\Program Files (x86)\VMware\VMware Workstation\vmrun.exe'
|
VmrunPath = '/usr/bin/vmrun'
|
||||||
GuestOS = 'Linux'
|
GuestOS = 'Linux'
|
||||||
BuildCommand = $BuildCommand
|
BuildCommand = $BuildCommand
|
||||||
Parallelism = $Parallelism
|
Parallelism = $Parallelism
|
||||||
@@ -70,6 +68,6 @@ $burnInParams = @{
|
|||||||
RoundTimeoutMinutes = $RoundTimeoutMinutes
|
RoundTimeoutMinutes = $RoundTimeoutMinutes
|
||||||
}
|
}
|
||||||
|
|
||||||
& "$scriptDir\Test-CapacityBurnIn.ps1" @burnInParams
|
& (Join-Path $PSScriptRoot 'Test-CapacityBurnIn.ps1') @burnInParams
|
||||||
|
|
||||||
exit $LASTEXITCODE
|
exit $LASTEXITCODE
|
||||||
|
|||||||
@@ -55,18 +55,16 @@ param(
|
|||||||
Set-StrictMode -Version Latest
|
Set-StrictMode -Version Latest
|
||||||
$ErrorActionPreference = 'Stop'
|
$ErrorActionPreference = 'Stop'
|
||||||
|
|
||||||
$scriptDir = Split-Path -Parent $MyInvocation.MyCommand.Path
|
|
||||||
|
|
||||||
$burnInParams = @{
|
$burnInParams = @{
|
||||||
RepoUrl = 'https://gitea.emulab.it/Simone/burnin-dummy.git'
|
RepoUrl = 'http://10.10.20.11:3100/Simone/burnin-dummy.git'
|
||||||
Branch = 'main'
|
Branch = 'main'
|
||||||
TemplatePath = 'F:\CI\Templates\WinBuild2025\WinBuild2025.vmx'
|
TemplatePath = '/var/lib/ci/templates/WinBuild2025/WinBuild2025.vmx'
|
||||||
SnapshotName = 'BaseClean'
|
SnapshotName = 'BaseClean'
|
||||||
CloneBaseDir = 'F:\CI\BuildVMs'
|
CloneBaseDir = '/var/lib/ci/build-vms/'
|
||||||
ArtifactBaseDir = 'F:\CI\Artifacts'
|
ArtifactBaseDir = '/var/lib/ci/artifacts/'
|
||||||
GuestCredentialTarget = 'BuildVMGuest'
|
GuestCredentialTarget = 'BuildVMGuest'
|
||||||
GiteaCredentialTarget = 'GiteaPAT'
|
GiteaCredentialTarget = 'GiteaPAT'
|
||||||
VmrunPath = 'C:\Program Files (x86)\VMware\VMware Workstation\vmrun.exe'
|
VmrunPath = '/usr/bin/vmrun'
|
||||||
GuestOS = 'Auto'
|
GuestOS = 'Auto'
|
||||||
BuildCommand = $BuildCommand
|
BuildCommand = $BuildCommand
|
||||||
Parallelism = $Parallelism
|
Parallelism = $Parallelism
|
||||||
@@ -74,6 +72,6 @@ $burnInParams = @{
|
|||||||
RoundTimeoutMinutes = $RoundTimeoutMinutes
|
RoundTimeoutMinutes = $RoundTimeoutMinutes
|
||||||
}
|
}
|
||||||
|
|
||||||
& "$scriptDir\Test-CapacityBurnIn.ps1" @burnInParams
|
& (Join-Path $PSScriptRoot 'Test-CapacityBurnIn.ps1') @burnInParams
|
||||||
|
|
||||||
exit $LASTEXITCODE
|
exit $LASTEXITCODE
|
||||||
|
|||||||
Reference in New Issue
Block a user