Files
krkn/CI/tests/common.sh
Paige Rubendall f17ad062cf Ci tests (#184)
* Adding in working ci tests

* spacing in readme
2021-11-24 15:12:47 -05:00

19 lines
299 B
Bash

ERRORED=false
function finish {
if [ $? -eq 1 ] && [ $ERRORED != "true" ]
then
error
fi
}
function error {
echo "Error caught."
ERRORED=true
}
function get_node {
worker_node=$(oc get nodes --no-headers | grep worker | head -n 1)
export WORKER_NODE=$worker_node
}