1
0
mirror of https://github.com/jcwimer/kubernetes-ansible synced 2026-03-25 00:54:44 +00:00

Added vagrant tests

This commit is contained in:
2018-11-15 09:33:16 -05:00
parent 6a9d318d30
commit 6e466cbe40
2 changed files with 88 additions and 0 deletions

View File

@@ -0,0 +1,21 @@
#!/bin/bash
red=`tput setaf 1`
green=`tput setaf 2`
reset=`tput sgr0`
#echo "${red}red text ${green}green text${reset}"
function testbash() {
local name="${1}"
shift
local command="${@}"
eval $command
local return=$?
if [[ ! $return -eq 0 ]]; then
echo "${red}FAILED: ${name}${reset}"
return 1
else
echo "${green}PASSED: $name${reset}"
return 0
fi
}