mirror of
https://github.com/PowerShell/PowerShell
synced 2026-06-08 12:12:50 +00:00
Fix Start-Job working directory path with trailing back slash (#11041)
This commit is contained in:
committed by
Aditya Patwardhan
parent
8ff29ddc62
commit
bd0e30dec1
@@ -94,6 +94,11 @@ Describe 'Basic Job Tests' -Tags 'CI' {
|
||||
$jobOutput | Should -BeExactly $path.ToString()
|
||||
}
|
||||
|
||||
It 'Verifies the working directory parameter path with trailing backslash' -Skip:(! $IsWindows) {
|
||||
$job = Start-Job { $pwd } -WorkingDirectory '\' | Wait-Job
|
||||
$job.JobStateInfo.State | Should -BeExactly 'Completed'
|
||||
}
|
||||
|
||||
It 'Throws an error when the working directory parameter is <case>' -TestCases $invalidPathTestCases {
|
||||
param($path, $case, $expectedErrorId)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user