summaryrefslogtreecommitdiffstats
path: root/testcases/features/promise.py
diff options
context:
space:
mode:
authorjose.lausuch <jose.lausuch@ericsson.com>2016-04-22 09:44:01 +0200
committerjose.lausuch <jose.lausuch@ericsson.com>2016-04-22 10:07:01 +0200
commite452376fbc44df9cf0688571e1882498f456f3a4 (patch)
tree306e1a34a898368ca412b5d081b72beccbd2454f /testcases/features/promise.py
parent430753939dd6788b8c3567eb149daef0aeb61b2e (diff)
Enable PYTHONPATH env variable inside the container
JIRA: FUNCTEST-224 Change-Id: Ib10dc312a761b06fe36174c5c19a0165f746593e Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
Diffstat (limited to 'testcases/features/promise.py')
-rw-r--r--testcases/features/promise.py8
1 files changed, 3 insertions, 5 deletions
diff --git a/testcases/features/promise.py b/testcases/features/promise.py
index d501d6764..04ca87a70 100644
--- a/testcases/features/promise.py
+++ b/testcases/features/promise.py
@@ -15,7 +15,6 @@ import logging
import os
import requests
import subprocess
-import sys
import yaml
import keystoneclient.v2_0.client as ksclient
@@ -23,6 +22,9 @@ import glanceclient.client as glclient
import novaclient.client as nvclient
from neutronclient.v2_0 import client as ntclient
+import functest_utils
+import openstack_utils
+
parser = argparse.ArgumentParser()
parser.add_argument("-d", "--debug", help="Debug mode", action="store_true")
@@ -58,10 +60,6 @@ GLANCE_IMAGE_FORMAT = functest_yaml.get('general'). \
GLANCE_IMAGE_PATH = functest_yaml.get('general'). \
get('directories').get('dir_functest_data') + "/" + GLANCE_IMAGE_FILENAME
-sys.path.append('%s/testcases' % FUNCTEST_REPO)
-import functest_utils
-import openstack_utils
-
""" logging configuration """
logger = logging.getLogger('Promise')
logger.setLevel(logging.DEBUG)