From f90cb26c7f15659f3e2be8061295997df2bb76cc Mon Sep 17 00:00:00 2001 From: Samruddhi Khandale Date: Mon, 14 Aug 2023 16:12:47 -0700 Subject: Common-utils: Fixes "No package jq available" errors for CentOS (#644) * add checks for "jq" * install epel-release if necessary * clean up epel-release post installation of "jq" --- test/common-utils/centos-7.sh | 1 + test/common-utils/fedora.sh | 1 + test/common-utils/mariner.sh | 1 + test/common-utils/rocky-8.sh | 1 + test/common-utils/rocky-9.sh | 1 + 5 files changed, 5 insertions(+) (limited to 'test') diff --git a/test/common-utils/centos-7.sh b/test/common-utils/centos-7.sh index a81ae2f..69f01d1 100755 --- a/test/common-utils/centos-7.sh +++ b/test/common-utils/centos-7.sh @@ -9,6 +9,7 @@ source dev-container-features-test-lib . /etc/os-release check "non-root user" test "$(whoami)" = "devcontainer" check "distro" test "${VERSION_ID}" = "7" +check "jq" jq --version # Report result reportResults \ No newline at end of file diff --git a/test/common-utils/fedora.sh b/test/common-utils/fedora.sh index b32a7f1..67706d4 100755 --- a/test/common-utils/fedora.sh +++ b/test/common-utils/fedora.sh @@ -9,6 +9,7 @@ source dev-container-features-test-lib . /etc/os-release check "non-root user" test "$(whoami)" = "devcontainer" check "distro" test "${ID}" = "fedora" +check "jq" jq --version # Report result reportResults \ No newline at end of file diff --git a/test/common-utils/mariner.sh b/test/common-utils/mariner.sh index ab6cb6e..b0d2c91 100755 --- a/test/common-utils/mariner.sh +++ b/test/common-utils/mariner.sh @@ -9,6 +9,7 @@ source dev-container-features-test-lib . /etc/os-release check "non-root user" test "$(whoami)" = "devcontainer" check "distro" test "${ID}" = "mariner" +check "jq" jq --version # Report result reportResults \ No newline at end of file diff --git a/test/common-utils/rocky-8.sh b/test/common-utils/rocky-8.sh index be1223b..d087318 100755 --- a/test/common-utils/rocky-8.sh +++ b/test/common-utils/rocky-8.sh @@ -10,6 +10,7 @@ source dev-container-features-test-lib check "non-root user" test "$(whoami)" = "devcontainer" check "distro" test "${PLATFORM_ID}" = "platform:el8" check "curl" curl --version +check "jq" jq --version # Report result reportResults \ No newline at end of file diff --git a/test/common-utils/rocky-9.sh b/test/common-utils/rocky-9.sh index 452c193..cb2b339 100755 --- a/test/common-utils/rocky-9.sh +++ b/test/common-utils/rocky-9.sh @@ -10,6 +10,7 @@ source dev-container-features-test-lib check "non-root user" test "$(whoami)" = "devcontainer" check "distro" test "${PLATFORM_ID}" = "platform:el9" check "curl" curl --version +check "jq" jq --version # Report result reportResults \ No newline at end of file -- cgit v1.2.3