mirror of
https://github.com/actions/runner-images.git
synced 2025-12-15 22:26:56 +00:00
[Ubuntu] Migrate tests for CLI tools to Pester (#2289)
* add tests for cli tools to pester * small fix * remove extra commenting * resolve issues * fix vercel test * remove extra logging
This commit is contained in:
committed by
GitHub
parent
7e4e97b9d9
commit
90ecf07404
@@ -5,6 +5,7 @@
|
||||
################################################################################
|
||||
|
||||
source $HELPER_SCRIPTS/install.sh
|
||||
source $HELPER_SCRIPTS/invoke-tests.sh
|
||||
|
||||
# Install the oc CLI
|
||||
DOWNLOAD_URL="https://mirror.openshift.com/pub/openshift-v4/clients/ocp/latest/openshift-client-linux.tar.gz"
|
||||
@@ -12,9 +13,4 @@ PACKAGE_TAR_NAME="oc.tar.gz"
|
||||
download_with_retries $DOWNLOAD_URL "/tmp" $PACKAGE_TAR_NAME
|
||||
tar xvzf "/tmp/$PACKAGE_TAR_NAME" -C "/usr/local/bin"
|
||||
|
||||
# Validate the installation
|
||||
echo "Validate the installation"
|
||||
if ! command -v oc; then
|
||||
echo "oc was not installed"
|
||||
exit 1
|
||||
fi
|
||||
invoke_tests "CLI.Tools" "OC CLI"
|
||||
Reference in New Issue
Block a user