From e452376fbc44df9cf0688571e1882498f456f3a4 Mon Sep 17 00:00:00 2001 From: "jose.lausuch" Date: Fri, 22 Apr 2016 09:44:01 +0200 Subject: Enable PYTHONPATH env variable inside the container JIRA: FUNCTEST-224 Change-Id: Ib10dc312a761b06fe36174c5c19a0165f746593e Signed-off-by: jose.lausuch --- testcases/vIMS/CI/vIMS.py | 23 +++++++++++------------ 1 file changed, 11 insertions(+), 12 deletions(-) (limited to 'testcases/vIMS') diff --git a/testcases/vIMS/CI/vIMS.py b/testcases/vIMS/CI/vIMS.py index 2518855cd..fcc056357 100644 --- a/testcases/vIMS/CI/vIMS.py +++ b/testcases/vIMS/CI/vIMS.py @@ -11,24 +11,26 @@ # http://www.apache.org/licenses/LICENSE-2.0 ######################################################################## -import os -import time -import subprocess -import logging import argparse -import yaml -import pprint -import sys -import json import datetime +import json +import logging +import os +import pprint import requests +import subprocess +import time +import yaml + import keystoneclient.v2_0.client as ksclient import glanceclient.client as glclient import novaclient.client as nvclient from neutronclient.v2_0 import client as ntclient -import orchestrator import clearwater +import functest_utils +import openstack_utils +import orchestrator pp = pprint.PrettyPrinter(indent=4) @@ -61,9 +63,6 @@ REPO_PATH = os.environ['repos_dir'] + '/functest/' if not os.path.exists(REPO_PATH): logger.error("Functest repository directory not found '%s'" % REPO_PATH) exit(-1) -sys.path.append(REPO_PATH + "testcases/") -import functest_utils -import openstack_utils with open("/home/opnfv/functest/conf/config_functest.yaml") as f: functest_yaml = yaml.safe_load(f) -- cgit 1.2.3-korg