From cfb92a9a3473f2d163ec8f6453a55d32d113221e Mon Sep 17 00:00:00 2001 From: Vitalii Koriakov Date: Wed, 30 Jan 2019 11:02:05 +0200 Subject: Delete quorum method from old file. Added fixes for flake8 Change-Id: I2acf835a4cf7301c64c4c8a9423f78672cdf9aa4 Signed-off-by: Vitalii Koriakov --- .../nfs_ganesha/test_nfs_ganesha_sanity.py | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) mode change 100644 => 100755 tests/functional/nfs_ganesha/test_nfs_ganesha_sanity.py (limited to 'tests/functional/nfs_ganesha/test_nfs_ganesha_sanity.py') diff --git a/tests/functional/nfs_ganesha/test_nfs_ganesha_sanity.py b/tests/functional/nfs_ganesha/test_nfs_ganesha_sanity.py old mode 100644 new mode 100755 index 05caf4a43..1e0956508 --- a/tests/functional/nfs_ganesha/test_nfs_ganesha_sanity.py +++ b/tests/functional/nfs_ganesha/test_nfs_ganesha_sanity.py @@ -69,16 +69,16 @@ class TestNfsGaneshaSanity(NfsGaneshaVolumeBaseClass): # Running kernel untar now,single loop for the sanity test g.log.info("Running kernel untars now") for mount_obj in self.mounts: - cmd = ("cd %s ;mkdir $(hostname);cd $(hostname);" - "wget https://www.kernel.org/pub/linux/kernel/v2.6" - "/linux-2.6.1.tar.gz;" - "tar xvf linux-2.6.1.tar.gz" % (mount_obj.mountpoint)) - ret, out, err = g.run(mount_obj.client_system, cmd) - if ret == 0: - g.log.info("Successfully untared the tarball!") - else: - g.log.error("ERROR ! Kernel untar errored out!") - self.assertEqual(ret, 0, "Kernel untar failed!") + cmd = ("cd %s ;mkdir $(hostname);cd $(hostname);" + "wget https://www.kernel.org/pub/linux/kernel/v2.6" + "/linux-2.6.1.tar.gz;" + "tar xvf linux-2.6.1.tar.gz" % mount_obj.mountpoint) + ret, out, err = g.run(mount_obj.client_system, cmd) + if ret == 0: + g.log.info("Successfully untared the tarball!") + else: + g.log.error("ERROR ! Kernel untar errored out!") + self.assertEqual(ret, 0, "Kernel untar failed!") # Check for crashes after kernel untar g.log.info("Checking for Cluster Status after kernel untar") -- cgit