diff options
Diffstat (limited to 'tests/functional/quota/test_limit_usage_deep_dir.py')
-rw-r--r-- | tests/functional/quota/test_limit_usage_deep_dir.py | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/tests/functional/quota/test_limit_usage_deep_dir.py b/tests/functional/quota/test_limit_usage_deep_dir.py index 092bac416..b024f575d 100644 --- a/tests/functional/quota/test_limit_usage_deep_dir.py +++ b/tests/functional/quota/test_limit_usage_deep_dir.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 @@ -15,7 +15,6 @@ # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. import random -import sys from glusto.core import Glusto as g from glustolibs.gluster.gluster_base_class import (GlusterBaseClass, @@ -33,8 +32,7 @@ from glustolibs.gluster.glusterdir import (mkdir, rmdir) -@runs_on([['distributed-replicated', 'replicated', 'distributed', - 'dispersed', 'distributed-dispersed'], +@runs_on([['distributed-replicated', 'replicated', 'distributed'], ['glusterfs', 'nfs']]) class LimitUsageDeepDir(GlusterBaseClass): @@ -180,9 +178,9 @@ class LimitUsageDeepDir(GlusterBaseClass): # Data creation # Creates one file of rand[0] size in each dir rand = random.sample([1, 10, 512], 1) - cmd = ("/usr/bin/env python%d %s create_files " + cmd = ("/usr/bin/env python %s create_files " "--fixed-file-size %sk %s/%s" % ( - sys.version_info.major, self.script_upload_path, + self.script_upload_path, rand[0], mount_object.mountpoint, dir_list[0])) ret, _, _ = g.run(mount_object.client_system, cmd) |