Remove redundant print functions 67/35767/1
authoryuyang <Gabriel.yuyang@huawei.com>
Mon, 5 Jun 2017 02:44:21 +0000 (10:44 +0800)
committeryuyang <Gabriel.yuyang@huawei.com>
Mon, 5 Jun 2017 02:44:21 +0000 (10:44 +0800)
JIRA: BOTTLENECK-158

Remove redundant print functions for report log

Change-Id: I35c43fd3e30090bc296823faca55b49c0431a1fb
Signed-off-by: yuyang <Gabriel.yuyang@huawei.com>
testsuites/posca/run_posca.py

index bd979b6..b1dba14 100755 (executable)
@@ -63,15 +63,12 @@ def report(testcase, start_date, stop_date, criteria, details_doc):
 
     try:
         LOG.debug('Test result : %s', jsonutils.dump_as_bytes(results))
-        print ('Start posting test results to community MongoDB')
         res = requests.post(target,
                             data=jsonutils.dump_as_bytes(results),
                             headers=headers,
                             timeout=timeout)
         LOG.debug('Test result posting finished with status code'
                   ' %d.' % res.status_code)
-        print ('Test results posting finished with status code'
-               ' %d.' % res.status_code)
     except Exception as err:
         LOG.exception('Failed to record result data: %s', err)