From 5f563a9b99378362a11d9cf1b0fb6c544a9fc077 Mon Sep 17 00:00:00 2001 From: xudan Date: Fri, 21 Apr 2017 06:31:33 +0000 Subject: use Functest tempest_custom test cases to run all Ipv6 test cases JIRA: DOVETAIL-401 1. modify all Ipv6 test cases, change tempest_smoke_serial/tempest_full_parallel into tempest_custom, add ID of each sub-testcases. 2. Some sub-testcases in ipv6.tc002, ipv6.tc003, ipv6.tc004 and ipv6.tc005 can not be found in the full tempest test case list. 2. disable testcases' script_result_acquired to enable tempest_custom run multiple times. 3. use build_tag-testcase_name(such as daily-master-79a6e392-28bb-4c40-9d88-a03bed99da2d-dovetail.ipv6.tc025) as the unique ID of each testcase. 4. comment out the progress bar, because it has some problems when print the report text. 5. Functest has changed the TEST_DB_URL from http://:/apv/v1 to http://:/apv/v1/results. 6. Functest has changed the TEST_DB_URL to file:///. see https://gerrit.opnfv.org/gerrit/#/c/33511/ Change-Id: I524f6702377f215f526158214842481eb44565be Signed-off-by: xudan --- dovetail/utils/dovetail_utils.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'dovetail/utils/dovetail_utils.py') diff --git a/dovetail/utils/dovetail_utils.py b/dovetail/utils/dovetail_utils.py index fa99e004..020617b8 100644 --- a/dovetail/utils/dovetail_utils.py +++ b/dovetail/utils/dovetail_utils.py @@ -49,14 +49,14 @@ def exec_cmd(cmd, logger=None, exit_on_error=False, info=False, p = subprocess.Popen(cmd, shell=True, stdout=subprocess.PIPE, stderr=subprocess.STDOUT) stdout = '' - count = 1 - DEBUG = os.getenv('DEBUG') + # count = 1 + # DEBUG = os.getenv('DEBUG') for line in iter(p.stdout.readline, b''): exec_log(verbose, logger, line.strip(), level, True) stdout += line - if DEBUG is None or DEBUG.lower() != "true": - show_progress_bar(count) - count += 1 + # if DEBUG is None or DEBUG.lower() != "true": + # show_progress_bar(count) + # count += 1 stdout = stdout.strip() returncode = p.wait() p.stdout.close() @@ -132,7 +132,7 @@ def get_ext_net_name(env_file, logger=None): def check_db_results(db_url, build_tag, testcase, logger): - url = "%s/results?build_tag=%s&case=%s" % (db_url, build_tag, testcase) + url = "%s?build_tag=%s-%s" % (db_url, build_tag, testcase) logger.debug("Query to rest api: %s", url) try: data = json.load(urllib2.urlopen(url)) -- cgit 1.2.3-korg