summaryrefslogtreecommitdiffstats
path: root/testcases/functest_utils.py
diff options
context:
space:
mode:
authorjose.lausuch <jose.lausuch@ericsson.com>2016-04-20 16:03:44 +0200
committerjose.lausuch <jose.lausuch@ericsson.com>2016-04-21 00:01:59 +0200
commitef62824e0471d07a4a3a40c401fc433070d961c6 (patch)
tree6d1bd61e7d49446ba1b1a52bb9978e1c5b88173c /testcases/functest_utils.py
parent3a85a34474a9d7a9384f22bce35e7b81177830e3 (diff)
Fix Flake8 Violations in the Functest scripts
JIRA: FUNCTEST-213 Change-Id: I66c02dd6ff12ffb9798ebe44a4cfe7bfc73e76c3 Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
Diffstat (limited to 'testcases/functest_utils.py')
-rw-r--r--testcases/functest_utils.py10
1 files changed, 6 insertions, 4 deletions
diff --git a/testcases/functest_utils.py b/testcases/functest_utils.py
index 8111959f5..1fccdca8d 100644
--- a/testcases/functest_utils.py
+++ b/testcases/functest_utils.py
@@ -16,7 +16,6 @@ import requests
import shutil
import socket
import subprocess
-import sys
import urllib2
from git import Repo
@@ -113,7 +112,8 @@ def get_pod_name(logger=None):
except KeyError:
if logger:
logger.error(
- "Unable to retrieve the POD name from environment.Using pod name 'unknown-pod'")
+ "Unable to retrieve the POD name from environment. " +
+ "Using pod name 'unknown-pod'")
return "unknown-pod"
@@ -150,8 +150,10 @@ def push_results_to_db(db_url, project, case_name, logger, pod_name,
logger.debug(r)
return True
except Exception, e:
- print "Error [push_results_to_db('%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s')]:" \
- % (db_url, project, case_name, pod_name, version, scenario, criteria, build_tag, payload), e
+ print "Error [push_results_to_db('%s', '%s', '%s', " + \
+ "'%s', '%s', '%s', '%s', '%s', '%s')]:" \
+ % (db_url, project, case_name, pod_name, version,
+ scenario, criteria, build_tag, payload), e
return False