diff options
author | jose.lausuch <jose.lausuch@ericsson.com> | 2016-04-22 09:44:01 +0200 |
---|---|---|
committer | jose.lausuch <jose.lausuch@ericsson.com> | 2016-04-22 10:07:01 +0200 |
commit | e452376fbc44df9cf0688571e1882498f456f3a4 (patch) | |
tree | 306e1a34a898368ca412b5d081b72beccbd2454f /testcases/Controllers | |
parent | 430753939dd6788b8c3567eb149daef0aeb61b2e (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/Controllers')
-rw-r--r-- | testcases/Controllers/ODL/CI/odlreport2db.py | 7 | ||||
-rw-r--r-- | testcases/Controllers/ONOS/Teston/CI/onosfunctest.py | 13 |
2 files changed, 9 insertions, 11 deletions
diff --git a/testcases/Controllers/ODL/CI/odlreport2db.py b/testcases/Controllers/ODL/CI/odlreport2db.py index 3a696eb2..f236ddcb 100644 --- a/testcases/Controllers/ODL/CI/odlreport2db.py +++ b/testcases/Controllers/ODL/CI/odlreport2db.py @@ -20,14 +20,13 @@ # 0.2: measure test duration and publish results under json format # # -import xmltodict + +import getopt import json import sys -import getopt +import xmltodict import yaml - -sys.path.append("/home/opnfv/repos/functest/testcases") import functest_utils diff --git a/testcases/Controllers/ONOS/Teston/CI/onosfunctest.py b/testcases/Controllers/ONOS/Teston/CI/onosfunctest.py index 73b4b63b..d36cf5ed 100644 --- a/testcases/Controllers/ONOS/Teston/CI/onosfunctest.py +++ b/testcases/Controllers/ONOS/Teston/CI/onosfunctest.py @@ -14,14 +14,15 @@ lanqinglong@huawei.com # """ +import argparse +import datetime +import logging import os +import re import time -import sys -import logging import yaml -import datetime -import re -import argparse + +import functest_utils parser = argparse.ArgumentParser() parser.add_argument("-i", "--installer", help="Installer type") @@ -54,8 +55,6 @@ REPO_PATH = ONOS_REPO_PATH + '/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 ONOSCI_PATH = REPO_PATH + 'testcases/Controllers/ONOS/Teston/CI/' starttime = datetime.datetime.now() |