File tree Expand file tree Collapse file tree 1 file changed +0
-9
lines changed Expand file tree Collapse file tree 1 file changed +0
-9
lines changed Original file line number Diff line number Diff line change @@ -5,9 +5,7 @@ function Get-TestConfig {
5
5
$config = [ordered ]@ {}
6
6
7
7
if (Test-Path $LocalConfigPath ) {
8
- Write-Host " Tests will use local constants file: tests\constants.local.ps1." - ForegroundColor Cyan
9
8
. $LocalConfigPath
10
- # Note: Local constants are sourced but not explicitly added to $config
11
9
} elseif ($env: CODESPACES -or ($env: TERM_PROGRAM -eq ' vscode' -and $env: REMOTE_CONTAINERS )) {
12
10
$null = Set-DbatoolsInsecureConnection
13
11
$config [' Instance1' ] = " dbatools1"
@@ -61,13 +59,6 @@ function Get-TestConfig {
61
59
}
62
60
}
63
61
64
- # derive the command name from the CALLING script's filename
65
- $config [' CommandName' ] = ($MyInvocation.MyCommand.Name | Split-Path - Leaf).Replace(" .Tests.ps1" , " " )
66
-
67
- if (-not $config [' CommandName' ]) {
68
- $config [' CommandName' ] = " Unknown"
69
- }
70
-
71
62
$config [' CommonParameters' ] = [System.Management.Automation.PSCmdlet ]::CommonParameters
72
63
73
64
if (-not $config [' Temp' ]) {
You can’t perform that action at this time.
0 commit comments