diff options
Diffstat (limited to 'tests/functional/nfs_ganesha/test_new_mount_while_io_in_progress.py')
-rw-r--r-- | tests/functional/nfs_ganesha/test_new_mount_while_io_in_progress.py | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/tests/functional/nfs_ganesha/test_new_mount_while_io_in_progress.py b/tests/functional/nfs_ganesha/test_new_mount_while_io_in_progress.py index 77c484ace..be33b501c 100644 --- a/tests/functional/nfs_ganesha/test_new_mount_while_io_in_progress.py +++ b/tests/functional/nfs_ganesha/test_new_mount_while_io_in_progress.py @@ -14,7 +14,10 @@ # with this program; if not, write to the Free Software Foundation, Inc., # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. from copy import deepcopy +import sys + from glusto.core import Glusto as g + from glustolibs.gluster.nfs_ganesha_libs import NfsGaneshaClusterSetupClass from glustolibs.gluster.gluster_base_class import runs_on from glustolibs.gluster.exceptions import ExecutionError @@ -35,7 +38,7 @@ class TestMountWhileIoInProgress(NfsGaneshaClusterSetupClass): Setup nfs-ganesha if not exists. Upload IO scripts to clients """ - NfsGaneshaClusterSetupClass.setUpClass.im_func(cls) + cls.get_super_method(cls, 'setUpClass')() # Setup nfs-ganesha if not exists. ret = cls.setup_nfs_ganesha() @@ -102,14 +105,14 @@ class TestMountWhileIoInProgress(NfsGaneshaClusterSetupClass): # Start IO g.log.info("Starting IO on %s:%s", mount_object.client_system, mount_object.mountpoint) - cmd = ("python %s create_deep_dirs_with_files " + cmd = ("/usr/bin/env python%d %s create_deep_dirs_with_files " "--dirname-start-num %d " "--dir-depth 2 " "--dir-length 10 " "--max-num-of-dirs 5 " - "--num-of-files 5 %s" % (self.script_upload_path, - dirname_start_num, - mount_object.mountpoint)) + "--num-of-files 5 %s" % ( + sys.version_info.major, self.script_upload_path, + dirname_start_num, mount_object.mountpoint)) proc = g.run_async(mount_object.client_system, cmd, user=mount_object.user) all_mounts_procs.append(proc) @@ -146,6 +149,5 @@ class TestMountWhileIoInProgress(NfsGaneshaClusterSetupClass): @classmethod def tearDownClass(cls): - (NfsGaneshaClusterSetupClass. - tearDownClass. - im_func(cls, delete_nfs_ganesha_cluster=False)) + cls.get_super_method(cls, 'tearDownClass')( + delete_nfs_ganesha_cluster=False) |