diff options
Diffstat (limited to 'functest/opnfv_tests/openstack/vping')
-rwxr-xr-x[-rw-r--r--] | functest/opnfv_tests/openstack/vping/vping_base.py | 6 | ||||
-rwxr-xr-x | functest/opnfv_tests/openstack/vping/vping_ssh.py | 6 |
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 213b79fc..e467dd9f 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 8ae590ed..b032c308 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) |