We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 57dbd30 commit aa72ad8Copy full SHA for aa72ad8
1 file changed
tests/Install.Tests.ps1
@@ -3,7 +3,8 @@ Set-StrictMode -Version Latest
3
Describe 'install.ps1' {
4
BeforeEach {
5
$script:ProjectRoot = Split-Path -Parent $PSScriptRoot
6
- $script:TempRoot = Join-Path ([System.IO.Path]::GetTempPath()) ("Install.Tests.{0}" -f [System.Guid]::NewGuid())
+ # Linux 容器里的 /tmp 可能挂载为不可执行,mock 外部命令需放在工作区内。
7
+ $script:TempRoot = Join-Path $script:ProjectRoot (".install-tests.{0}" -f [System.Guid]::NewGuid())
8
New-Item -ItemType Directory -Path $script:TempRoot -Force | Out-Null
9
10
Copy-Item -Path (Join-Path $script:ProjectRoot 'install.ps1') -Destination (Join-Path $script:TempRoot 'install.ps1') -Force
0 commit comments