#!/bin/sh -x
n=$(basename $testdir)
ar=${automationrepo:-~/github.com/SUSE-Cloud/automation}
if [[ $(hostname) =~ ^mkch.$ ]] ; then
    . $ar/scripts/mkcloudhost/routed.cloud $n
else
    . $ar/scripts/mkcloudhost/runtestn $n
fi
echo env=$testdir n=$n admin=$net_admin cloudpv=$cloudpv cloudvg=$cloudvg params="$@"
echo access from outside via http://crowbar.$cloud.cloud.suse.de/ and http://dashboard.$cloud.cloud.suse.de/
exec "$@"
