diff options
author | kshithijiyer <kshithij.ki@gmail.com> | 2020-02-20 12:25:15 +0530 |
---|---|---|
committer | Bala Konda Reddy M <bala12352@gmail.com> | 2020-02-26 06:01:04 +0000 |
commit | 3e6d5bdc8c45ac3b726ca3b7237e43194805cc56 (patch) | |
tree | 55dd6baa7b4a4b5a7e5b6ea7b1ad96dbf19d4d89 /tests/functional/quota/test_quota_limit_dir_breadth.py | |
parent | 17fa26e1f33e5c29b7ed0e205dc85376948c5f92 (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_limit_dir_breadth.py')
-rwxr-xr-x | tests/functional/quota/test_quota_limit_dir_breadth.py | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/tests/functional/quota/test_quota_limit_dir_breadth.py b/tests/functional/quota/test_quota_limit_dir_breadth.py index eb23efceb..acaa82790 100755 --- a/tests/functional/quota/test_quota_limit_dir_breadth.py +++ b/tests/functional/quota/test_quota_limit_dir_breadth.py @@ -1,4 +1,4 @@ -# Copyright (C) 2015-2018 Red Hat, Inc. <http://www.redhat.com> +# Copyright (C) 2015-2020 Red Hat, Inc. <http://www.redhat.com> # # 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 @@ -14,8 +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 glusto.core import Glusto as g from glustolibs.gluster.gluster_base_class import (GlusterBaseClass, @@ -102,8 +100,8 @@ class QuotaLimitDirBreadth(GlusterBaseClass): g.log.info("Creating Directories on %s:%s", client, mount_dir) - cmd = "/usr/bin/env python%d %s create_deep_dir -d 0 -l 10 %s" % ( - sys.version_info.major, self.script_upload_path, mount_dir) + cmd = "/usr/bin/env python %s create_deep_dir -d 0 -l 10 %s" % ( + self.script_upload_path, mount_dir) proc = g.run_async(client, cmd, user=mount_obj.user) self.all_mounts_procs.append(proc) @@ -151,9 +149,9 @@ class QuotaLimitDirBreadth(GlusterBaseClass): g.log.info("Creating Files on %s:%s", client, mount_dir) for i in range(1, 11): dir_name = "/user" + str(i) - cmd = ("/usr/bin/env python%d %s create_files -f 10 " + cmd = ("/usr/bin/env python %s create_files -f 10 " "--fixed-file-size 1M %s/%s" % ( - sys.version_info.major, self.script_upload_path, + self.script_upload_path, mount_dir, dir_name)) ret, _, _ = g.run(client, cmd) |