3 ##############################################################################
4 # Copyright (c) 2015 Huawei Technologies Co.,Ltd and others.
6 # All rights reserved. This program and the accompanying materials
7 # are made available under the terms of the Apache License, Version 2.0
8 # which accompanies this distribution, and is available at
9 # http://www.apache.org/licenses/LICENSE-2.0
10 ##############################################################################
12 CLI_BASE="/home/opnfv/bottlenecks/"
14 # Logout the virtual enviroment
15 if [ ! -z ${VIRTUAL_ENV} ]; then
19 # Delete the virtual enviroment
20 rm -rf $CLI_BASE/venv/
22 # Delete CLI python package
23 if [ -d $CLI_BASE/bottlenecks.egg-info ]; then
24 rm -rf $CLI_BASE/bottlenecks.egg-info
27 if [ -f $CLI_BASE/cli/bottlenecks_cli.pyc ]; then
28 rm -f $CLI_BASE/cli/bottlenecks_cli.pyc
31 if [ -f $CLI_BASE/cli/__init__.pyc ]; then
32 rm -f $CLI_BASE/cli/__init__.pyc
35 if [ -f $CLI_BASE/cli/command_group/testcase.pyc ]; then
36 rm -f $CLI_BASE/cli/command_group/testcase.pyc
39 if [ -f $CLI_BASE/cli/command_group/__init__.pyc ]; then
40 rm -f $CLI_BASE/cli/command_group/__init__.pyc
44 if [ -d $CLI_BASE/utils/infra_setup/bottlenecks_key/ ]; then
45 rm -rf $CLI_BASE/utils/infra_setup/bottlenecks_key/