diff --git a/images/linux/scripts/helpers/Tests.Helpers.psm1 b/images/linux/scripts/helpers/Tests.Helpers.psm1 index 35c5ab10a..c0e2c270e 100644 --- a/images/linux/scripts/helpers/Tests.Helpers.psm1 +++ b/images/linux/scripts/helpers/Tests.Helpers.psm1 @@ -36,7 +36,7 @@ function Invoke-PesterTests { $ErrorActionPreference = $backupErrorActionPreference # 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 throw "Test run has failed" } diff --git a/images/linux/scripts/installers/basic.sh b/images/linux/scripts/installers/basic.sh index 270cc75c8..efac5bd44 100644 --- a/images/linux/scripts/installers/basic.sh +++ b/images/linux/scripts/installers/basic.sh @@ -12,4 +12,5 @@ for package in $common_packages $cmd_packages; do apt-get install -y --no-install-recommends $package done -invoke_tests "Apt" \ No newline at end of file +invoke_tests "Apt" +invoke_tests "Browsers" "Chromium" \ No newline at end of file