aboutsummaryrefslogtreecommitdiffstats
path: root/functest/opnfv_tests/openstack/vping
diff options
context:
space:
mode:
authorhelenyao <yaohelan@huawei.com>2016-12-19 22:18:33 -0500
committerhelenyao <yaohelan@huawei.com>2016-12-20 07:34:48 -0500
commitb69a7d6b3cbcceedb0f1f37f736a593fd77fc0be (patch)
tree095ca8ddfbf8e4fd9f7d3754d7f0104976ec336d /functest/opnfv_tests/openstack/vping
parentef43b6cbc6b445762dd7d48491dfe670bac2f710 (diff)
Remove backslash to meet PEP8 requirement
JIRA: FUNCTEST-630 Change-Id: Ia02760fd98aaab59a6cf0a90a2020b76e0c92df6 Signed-off-by: helenyao <yaohelan@huawei.com>
Diffstat (limited to 'functest/opnfv_tests/openstack/vping')
-rwxr-xr-x[-rw-r--r--]functest/opnfv_tests/openstack/vping/vping_base.py6
-rwxr-xr-xfunctest/opnfv_tests/openstack/vping/vping_ssh.py6
2 files changed, 6 insertions, 6 deletions
diff --git a/functest/opnfv_tests/openstack/vping/vping_base.py b/functest/opnfv_tests/openstack/vping/vping_base.py
index 213b79fcf..e467dd9f5 100644..100755
--- a/functest/opnfv_tests/openstack/vping/vping_base.py
+++ b/functest/opnfv_tests/openstack/vping/vping_base.py
@@ -36,9 +36,9 @@ class VPingBase(testcase_base.TestcaseBase):
self.image_name = get_conf('vping.image_name')
self.image_filename = get_conf('general.openstack.image_file_name')
self.image_format = get_conf('general.openstack.image_disk_format')
- self.image_path = \
- "%s/%s" % (get_conf('general.directories.dir_functest_data'),
- self.image_filename)
+ self.image_path = ("%s/%s" %
+ (get_conf('general.directories.dir_functest_data'),
+ self.image_filename))
self.flavor_name = get_conf('vping.vm_flavor')
diff --git a/functest/opnfv_tests/openstack/vping/vping_ssh.py b/functest/opnfv_tests/openstack/vping/vping_ssh.py
index 8ae590eda..b032c3087 100755
--- a/functest/opnfv_tests/openstack/vping/vping_ssh.py
+++ b/functest/opnfv_tests/openstack/vping/vping_ssh.py
@@ -101,9 +101,9 @@ class VPingSSH(vping_base.VPingBase):
"from the dhcp agent." % self.vm2_name)
# if dhcp not work,it shows "No lease, failing".The test will fail
- if "No lease, failing" in console_log \
- and not nolease \
- and not got_ip:
+ if ("No lease, failing" in console_log and
+ not nolease and
+ not got_ip):
nolease = True
self.logger.debug("Console-log '%s': No lease, failing..."
% self.vm2_name)