From 33d4c0213f7914fd2180a0c2009910f8beea3420 Mon Sep 17 00:00:00 2001 From: Mikhail Timofeev <48208649+miketimofeev@users.noreply.github.com> Date: Sun, 7 Feb 2021 16:10:42 +0300 Subject: [PATCH] [Ubuntu] Invoke chromium test after installation (#2640) * Add test invocation * ge instead of gt * change condition --- images/linux/scripts/helpers/Tests.Helpers.psm1 | 2 +- images/linux/scripts/installers/basic.sh | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/images/linux/scripts/helpers/Tests.Helpers.psm1 b/images/linux/scripts/helpers/Tests.Helpers.psm1 index 35c5ab10..c0e2c270 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 270cc75c..efac5bd4 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