mirror of
https://github.com/PowerShell/PSDscResources
synced 2026-06-21 13:45:29 +00:00
Port improvements to cloning of DscResource.Tests
This commit is contained in:
@@ -809,7 +809,8 @@ function Test-DscResourceTestsNeedsInstallOrUpdate
|
||||
$RefreshAfterMinutes = $script:dscResourceTestsRefreshAfterMinutes
|
||||
)
|
||||
|
||||
$moduleRootPath = Split-Path -Path $PSScriptRoot -Parent
|
||||
$testsFolderPath = Split-Path -Path $PSScriptRoot -Parent
|
||||
$moduleRootPath = Split-Path -Path $testsFolderPath -Parent
|
||||
$dscResourceTestsPath = Join-Path -Path $moduleRootPath -ChildPath 'DSCResource.Tests'
|
||||
|
||||
if (Test-Path -Path $dscResourceTestsPath)
|
||||
@@ -862,7 +863,8 @@ function Install-DscResourceTestsModule
|
||||
(
|
||||
)
|
||||
|
||||
$moduleRootPath = Split-Path -Path $PSScriptRoot -Parent
|
||||
$testsFolderPath = Split-Path -Path $PSScriptRoot -Parent
|
||||
$moduleRootPath = Split-Path -Path $testsFolderPath -Parent
|
||||
$dscResourceTestsPath = Join-Path -Path $moduleRootPath -ChildPath 'DSCResource.Tests'
|
||||
$gitInstalled = $null -ne (Get-Command -Name 'git' -ErrorAction 'SilentlyContinue')
|
||||
$writeMagicFile = $false
|
||||
@@ -943,7 +945,8 @@ function Exit-DscResourceTestEnvironment
|
||||
$TestEnvironment
|
||||
)
|
||||
|
||||
$moduleRootPath = Split-Path -Path $PSScriptRoot -Parent
|
||||
$testsFolderPath = Split-Path -Path $PSScriptRoot -Parent
|
||||
$moduleRootPath = Split-Path -Path $testsFolderPath -Parent
|
||||
$dscResourceTestsPath = Join-Path -Path $moduleRootPath -ChildPath 'DSCResource.Tests'
|
||||
$testHelperFilePath = Join-Path -Path $dscResourceTestsPath -ChildPath 'TestHelper.psm1'
|
||||
|
||||
|
||||
Reference in New Issue
Block a user