mirror of
https://github.com/PowerShell/PowerShell
synced 2026-06-08 12:12:50 +00:00
Update Ubuntu images to use Ubuntu 20.04 (#15906)
This commit is contained in:
@@ -180,7 +180,12 @@ Describe 'get-help HelpFunc1' -Tags "Feature" {
|
||||
Describe 'get-help file' -Tags "CI" {
|
||||
BeforeAll {
|
||||
try {
|
||||
$tmpfile = [IO.Path]::ChangeExtension([IO.Path]::GetTempFileName(), "ps1")
|
||||
if ($IsWindows) {
|
||||
$tmpfile = [IO.Path]::ChangeExtension([IO.Path]::GetTempFileName(), "ps1")
|
||||
}
|
||||
else {
|
||||
$tmpfile = Join-Path $env:HOME $([IO.Path]::ChangeExtension([IO.Path]::GetRandomFileName(), "ps1"))
|
||||
}
|
||||
} catch {
|
||||
return
|
||||
}
|
||||
@@ -233,7 +238,12 @@ Describe 'get-help file' -Tags "CI" {
|
||||
Describe 'get-help other tests' -Tags "CI" {
|
||||
BeforeAll {
|
||||
try {
|
||||
$tempFile = [IO.Path]::ChangeExtension([IO.Path]::GetTempFileName(), "ps1")
|
||||
if ($IsWindows) {
|
||||
$tempFile = [IO.Path]::ChangeExtension([IO.Path]::GetTempFileName(), "ps1")
|
||||
}
|
||||
else {
|
||||
$tempFile = Join-Path $env:HOME $([IO.Path]::ChangeExtension([IO.Path]::GetRandomFileName(), "ps1"))
|
||||
}
|
||||
} catch {
|
||||
return
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user