From: Ricardo Dias Date: Thu, 1 Mar 2018 09:55:42 +0000 (+0000) Subject: mgr/dashboard_v2: added script to run backend API tests locally X-Git-Tag: v13.0.2~84^2 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=5449857380de6db770a356d4a6ba98f0e171103d;p=ceph.git mgr/dashboard_v2: added script to run backend API tests locally Signed-off-by: Ricardo Dias --- diff --git a/src/pybind/mgr/dashboard_v2/run-backend-api-tests.sh b/src/pybind/mgr/dashboard_v2/run-backend-api-tests.sh new file mode 100755 index 0000000000000..6ace26781dd28 --- /dev/null +++ b/src/pybind/mgr/dashboard_v2/run-backend-api-tests.sh @@ -0,0 +1,98 @@ +#!/usr/bin/env bash + +# run from ./ + +# creating temp directory to store virtualenv and teuthology +TEMP_DIR=`mktemp -d` + +get_cmake_variable() { + local variable=$1 + grep "$variable" CMakeCache.txt | cut -d "=" -f 2 +} + +read -r -d '' TEUTHOLOFY_PY_REQS <