4 Script to install opnfv_tesgtapi automatically.
5 This script should be run under root.
8 bash $(basename "$0") [-h|--help] [-t <test_name>]
11 -h|--help show this help text"
13 # Ref :- https://openstack.nimeyo.com/87286/openstack-packaging-all-definition-data-files-config-setup
14 if [ -z "$VIRTUAL_ENV" ];
16 if [[ $(whoami) != "root" ]];
18 echo "Error: This script must be run as root!"
22 sed -i -e 's#/etc/opnfv_testapi =#etc/opnfv_testapi =#g' setup.cfg
25 cp -fr 3rd_party/static opnfv_testapi/static
26 python setup.py install
27 rm -fr opnfv_testapi/static
28 if [ ! -z "$VIRTUAL_ENV" ]; then
29 sed -i -e 's#etc/opnfv_testapi =#/etc/opnfv_testapi =#g' setup.cfg