mirror of
https://github.com/actions/runner-images.git
synced 2025-12-20 06:35:47 +00:00
fix git tests
This commit is contained in:
@@ -27,12 +27,12 @@ Describe "Chrome" {
|
|||||||
$versionInfo | Should -Not -BeNullOrEmpty
|
$versionInfo | Should -Not -BeNullOrEmpty
|
||||||
}
|
}
|
||||||
|
|
||||||
It "gupdate is stopped" {
|
It "gupdate service is stopped" {
|
||||||
$svc = Get-Service -Name gupdate
|
$svc = Get-Service -Name gupdate
|
||||||
$svc.Status | Should -BeExactly Stopped
|
$svc.Status | Should -BeExactly Stopped
|
||||||
}
|
}
|
||||||
|
|
||||||
It "gupdatem is stopped" {
|
It "gupdatem service is stopped" {
|
||||||
$svc = Get-Service -Name gupdatem
|
$svc = Get-Service -Name gupdatem
|
||||||
$svc.Status | Should -BeExactly Stopped
|
$svc.Status | Should -BeExactly Stopped
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -15,10 +15,6 @@ Describe "Git" {
|
|||||||
(Get-Command -Name $toolName).Source | Should -Match $source
|
(Get-Command -Name $toolName).Source | Should -Match $source
|
||||||
}
|
}
|
||||||
|
|
||||||
It "hub is installed" {
|
|
||||||
"hub --version" | Should -ReturnZeroExitCode
|
|
||||||
}
|
|
||||||
|
|
||||||
It "Git core.symlinks=true option is enabled" {
|
It "Git core.symlinks=true option is enabled" {
|
||||||
git config core.symlinks | Should -BeExactly true
|
git config core.symlinks | Should -BeExactly true
|
||||||
}
|
}
|
||||||
@@ -28,6 +24,12 @@ Describe "Git" {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Describe "Hub" {
|
||||||
|
It "hub is installed" {
|
||||||
|
"hub --version" | Should -ReturnZeroExitCode
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
Describe "GitVersion" {
|
Describe "GitVersion" {
|
||||||
It "gitversion is installed" {
|
It "gitversion is installed" {
|
||||||
"gitversion /version" | Should -ReturnZeroExitCode
|
"gitversion /version" | Should -ReturnZeroExitCode
|
||||||
|
|||||||
Reference in New Issue
Block a user