summaryrefslogtreecommitdiffstats
path: root/tests/functional/samba/test_stat_prefetch.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/samba/test_stat_prefetch.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/samba/test_stat_prefetch.py')
-rw-r--r--tests/functional/samba/test_stat_prefetch.py9
1 files changed, 3 insertions, 6 deletions
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. <http://www.redhat.com>
+# Copyright (C) 2017-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
@@ -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,