From 3e6d5bdc8c45ac3b726ca3b7237e43194805cc56 Mon Sep 17 00:00:00 2001 From: kshithijiyer Date: Thu, 20 Feb 2020 12:25:15 +0530 Subject: [Testfix] Remove python version dependency(Part 3) Please refer to commit message of patch [1]. [1] https://review.gluster.org/#/c/glusto-tests/+/24140/ Change-Id: Ib357d5690bb28131d788073b80a088647167fe80 Signed-off-by: kshithijiyer --- tests/functional/samba/test_stat_prefetch.py | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'tests/functional/samba') diff --git a/tests/functional/samba/test_stat_prefetch.py b/tests/functional/samba/test_stat_prefetch.py index d7d4e90fe..7bd5c573f 100644 --- a/tests/functional/samba/test_stat_prefetch.py +++ b/tests/functional/samba/test_stat_prefetch.py @@ -1,4 +1,4 @@ -# Copyright (C) 2017-2018 Red Hat, Inc. +# Copyright (C) 2017-2020 Red Hat, Inc. # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -21,9 +21,6 @@ Description: set stat-prefetch off-on this should fail the IO running on the mount point. """ - -import sys - from glusto.core import Glusto as g from glustolibs.gluster.mount_ops import mount_volume @@ -101,10 +98,10 @@ class TestValidateCifs(GlusterBaseClass): self.assertEqual(ret, 0, "Cifs Mount Failed") g.log.info("Starting IO on %s:%s", mount_obj.client_system, mount_obj.mountpoint) - cmd = ("/usr/bin/env python%d %s create_files -f 10000" + cmd = ("/usr/bin/env python %s create_files -f 10000" " --base-file-name ctdb-cifs " " --fixed-file-size 10k %s/samba/" - % (sys.version_info.major, self.script_upload_path, + % (self.script_upload_path, mount_obj.mountpoint)) proc = g.run_async(mount_obj.client_system, cmd, -- cgit