mirror of
https://github.com/unslothai/unsloth.git
synced 2026-08-25 16:52:26 +00:00
Extract Get-HostMachineArch for the setup.ps1 Pester suite (#7606)
This commit is contained in:
parent
470fd30901
commit
f21b280cca
1 changed files with 2 additions and 1 deletions
|
|
@ -30,7 +30,8 @@ BeforeAll {
|
|||
foreach ($fn in @('Resolve-VsGeneratorFromLabel', 'Find-VsBuildTools', 'Get-VcBuildCustomizationsDir',
|
||||
'Test-CmakeSupportsGenerator', 'Get-CmakeVersion', 'Test-CmakeListsGenerator',
|
||||
'Test-CmakeCanDriveGenerator', 'Get-FallbackVsGenerator',
|
||||
'Ensure-BuildToolsForLlamaSourceBuild', 'Test-VCRedistInstalled')) {
|
||||
'Ensure-BuildToolsForLlamaSourceBuild', 'Test-VCRedistInstalled',
|
||||
'Get-HostMachineArch')) {
|
||||
$src = Get-FunctionSource -Path $script:SetupPs1 -Name $fn
|
||||
if (-not $src) { throw "Function '$fn' not found in $script:SetupPs1 - cannot test the real code." }
|
||||
. ([scriptblock]::Create($src))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue