]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
qa/tasks/cephfs/mount: to make sure that the count/seek are int type
authorXiubo Li <xiubli@redhat.com>
Thu, 23 Apr 2020 21:31:24 +0000 (17:31 -0400)
committerKefu Chai <kchai@redhat.com>
Sun, 14 Jun 2020 08:34:52 +0000 (16:34 +0800)
To fix "stderr:dd: invalid number: '5.0'".

Fixes: https://tracker.ceph.com/issues/45247
Signed-off-by: Xiubo Li <xiubli@redhat.com>
(cherry picked from commit 65f97690af8ca49e7a8b508621bf47d4fc004853)

qa/tasks/cephfs/mount.py

index 5976e380db9d3a186e33fdac78ef2dbd122c342a..77d16fb6f21bfdfa7f33f8526e4f5d73362f58e8 100644 (file)
@@ -419,8 +419,8 @@ class CephFSMount(object):
 
         return self.run_shell(["dd", "if=/dev/urandom", "of={0}".format(filename),
                                "bs=1M", "conv=fdatasync",
-                               "count={0}".format(n_mb),
-                               "seek={0}".format(seek)
+                               "count={0}".format(int(n_mb)),
+                               "seek={0}".format(int(seek))
                                ], wait=wait)
 
     def write_test_pattern(self, filename, size):