mirror of
https://github.com/actions/runner-images.git
synced 2025-12-15 22:26:56 +00:00
[Ubuntu] Invoke chromium test after installation (#2640)
* Add test invocation * ge instead of gt * change condition
This commit is contained in:
@@ -36,7 +36,7 @@ function Invoke-PesterTests {
|
|||||||
$ErrorActionPreference = $backupErrorActionPreference
|
$ErrorActionPreference = $backupErrorActionPreference
|
||||||
|
|
||||||
# Fail in case if no tests are run
|
# Fail in case if no tests are run
|
||||||
if (-not ($results -and ($results.FailedCount -eq 0) -and ($results.PassedCount -gt 0))) {
|
if (-not ($results -and ($results.FailedCount -eq 0) -and (($results.PassedCount + $results.SkippedCount) -gt 0))) {
|
||||||
$results
|
$results
|
||||||
throw "Test run has failed"
|
throw "Test run has failed"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -13,3 +13,4 @@ for package in $common_packages $cmd_packages; do
|
|||||||
done
|
done
|
||||||
|
|
||||||
invoke_tests "Apt"
|
invoke_tests "Apt"
|
||||||
|
invoke_tests "Browsers" "Chromium"
|
||||||
Reference in New Issue
Block a user