Run test env towards selected kube cluster
[nonrtric.git] / test / common / ngw_api_functions.sh
index bb37799..1886ad8 100644 (file)
@@ -79,7 +79,7 @@ __NGW_kube_delete_all() {
 # args: <log-dir> <file-prexix>
 __NGW_store_docker_logs() {
        if [ $RUNMODE == "KUBE" ]; then
-               kubectl  logs -l "autotest=NGW" -n $KUBE_NONRTRIC_NAMESPACE --tail=-1 > $1$2_gateway.log 2>&1
+               kubectl $KUBECONF  logs -l "autotest=NGW" -n $KUBE_NONRTRIC_NAMESPACE --tail=-1 > $1$2_gateway.log 2>&1
        else
                docker logs $NRT_GATEWAY_APP_NAME > $1$2_gateway.log 2>&1
        fi