summaryrefslogtreecommitdiffstats
path: root/tests/functional/quota/test_quota_rebalance.py
diff options
context:
space:
mode:
authorkshithijiyer <kshithij.ki@gmail.com>2020-02-20 12:25:15 +0530
committerBala Konda Reddy M <bala12352@gmail.com>2020-02-26 06:01:04 +0000
commit3e6d5bdc8c45ac3b726ca3b7237e43194805cc56 (patch)
tree55dd6baa7b4a4b5a7e5b6ea7b1ad96dbf19d4d89 /tests/functional/quota/test_quota_rebalance.py
parent17fa26e1f33e5c29b7ed0e205dc85376948c5f92 (diff)
[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 <kshithij.ki@gmail.com>
Diffstat (limited to 'tests/functional/quota/test_quota_rebalance.py')
-rwxr-xr-xtests/functional/quota/test_quota_rebalance.py11
1 files changed, 4 insertions, 7 deletions
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)