features/test/common-utils/centos-7.sh
Samruddhi Khandale f90cb26c7f
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"
2023-08-14 16:12:47 -07:00

15 lines
292 B
Bash
Executable file

#!/bin/bash
set -e
# Optional: Import test library
source dev-container-features-test-lib
# Definition specific tests
. /etc/os-release
check "non-root user" test "$(whoami)" = "devcontainer"
check "distro" test "${VERSION_ID}" = "7"
check "jq" jq --version
# Report result
reportResults