diff options
author | shangxdy <shang.xiaodong@zte.com.cn> | 2017-08-31 10:22:48 +0800 |
---|---|---|
committer | shangxdy <shang.xiaodong@zte.com.cn> | 2017-09-06 18:18:46 +0800 |
commit | 87be76e6c8b3024c05fe76a97a5a922486a64bb9 (patch) | |
tree | d0ff8a7cc57c80c1d81a7f3bde08662bfd830186 /tests | |
parent | 33c0357fefe6683a58c7c21477f1a411b62f293f (diff) |
Package for funectest
Modify the install script
JIRA: PARSER-125
Change-Id: Ia43687286fb8ac3b18b816aa5e4928ce9a12beec
Signed-off-by: shangxdy <shang.xiaodong@zte.com.cn>
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/parser_install.sh | 41 |
1 files changed, 0 insertions, 41 deletions
diff --git a/tests/parser_install.sh b/tests/parser_install.sh deleted file mode 100755 index 40b61d4..0000000 --- a/tests/parser_install.sh +++ /dev/null @@ -1,41 +0,0 @@ -#!/bin/bash -e -############################################################################## -# Copyright (c) 2016 ZTE Corporation. -# -# All rights reserved. This program and the accompanying materials -# are made available under the terms of the Apache License, Version 2.0 -# which accompanies this distribution, and is available at -# http://www.apache.org/licenses/LICENSE-2.0 -############################################################################## - -set +e -BASE_WORK_DIR=$(cd $(dirname $0) && pwd) - -OPNFV_REPO_DIR=${1:-""} - -# start syslog for loghander -service rsyslog restart && echo "syslog start successfully" - -# install requirements for parser -if [ -n "${OPNFV_REPO_DIR}" ]; then - echo " OPNFV repository directory is ${OPNFV_REPO_DIR}" - pip install -r ${OPNFV_REPO_DIR}/parser/tosca2heat/tosca-parser/requirements.txt - pip install -r ${OPNFV_REPO_DIR}/parser/tosca2heat/heat-translator/requirements.txt -else - echo "No input for OPNFV repository directory, will use local directory" - pip install -r ${BASE_WORK_DIR}/../tosca2heat/tosca-parser/requirements.txt - pip install -r ${BASE_WORK_DIR}/../tosca2heat/heat-translator/requirements.txt -fi - -# uninstall other tosca-parser and heat-translator for parser -pip uninstall -y tosca-parser -pip uninstall -y heat-translator - -# install parser -if [ -n "${OPNFV_REPO_DIR}" ]; then - cd ${OPNFV_REPO_DIR}/parser/tosca2heat/tosca-parser && python setup.py install - cd ${OPNFV_REPO_DIR}/parser/tosca2heat/heat-translator && python setup.py install -else - cd ${BASE_WORK_DIR}/../tosca2heat/tosca-parser && python setup.py install - cd ${BASE_WORK_DIR}/../tosca2heat/heat-translator && python setup.py install -fi
\ No newline at end of file |