diff options
Diffstat (limited to 'utils/test/result_collection_api/install.sh')
-rwxr-xr-x | utils/test/result_collection_api/install.sh | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/utils/test/result_collection_api/install.sh b/utils/test/result_collection_api/install.sh new file mode 100755 index 000000000..43229eabb --- /dev/null +++ b/utils/test/result_collection_api/install.sh @@ -0,0 +1,20 @@ +#!/bin/bash + +usage=" +Script to install opnfv_tesgtapi automatically. +This script should be run under root. + +usage: + bash $(basename "$0") [-h|--help] [-t <test_name>] + +where: + -h|--help show this help text" + +if [[ $(whoami) != "root" ]]; then + echo "Error: This script must be run as root!" + exit 1 +fi + +cp -fr 3rd_party/static opnfv_testapi/tornado_swagger +python setup.py install +rm -fr opnfv_testapi/tornado_swagger/static |