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/quota/test_quota_rebalance.py | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) (limited to 'tests/functional/quota/test_quota_rebalance.py') diff --git a/tests/functional/quota/test_quota_rebalance.py b/tests/functional/quota/test_quota_rebalance.py index 5dd53f1f0..8f71ef9c9 100755 --- a/tests/functional/quota/test_quota_rebalance.py +++ b/tests/functional/quota/test_quota_rebalance.py @@ -14,7 +14,6 @@ # with this program; if not, write to the Free Software Foundation, Inc., # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. -import sys from time import sleep from glusto.core import Glusto as g from glustolibs.gluster.gluster_base_class import GlusterBaseClass, runs_on @@ -127,10 +126,9 @@ class TestQuotaRebalance(GlusterBaseClass): # Do some IO until hard limit is reached cmd = ( - "/usr/bin/env python%d %s create_files " + "/usr/bin/env python %s create_files " "-f 100 --fixed-file-size 1M --base-file-name file %s" - % (sys.version_info.major, - self.script_upload_path, + % (self.script_upload_path, self.mounts[0].mountpoint)) proc = g.run_async( self.mounts[0].client_system, cmd, user=self.mounts[0].user) @@ -184,10 +182,9 @@ class TestQuotaRebalance(GlusterBaseClass): # Perform some more IO and check if hard limit is honoured self.all_mounts_procs = [] cmd = ( - "/usr/bin/env python%d %s create_files " + "/usr/bin/env python %s create_files " "-f 100 --fixed-file-size 1M --base-file-name newfile %s" - % (sys.version_info.major, - self.script_upload_path, + % (self.script_upload_path, self.mounts[0].mountpoint)) proc = g.run_async( self.mounts[0].client_system, cmd, user=self.mounts[0].user) -- cgit