]> git.apps.os.sepia.ceph.com Git - ceph-ci.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)
committerXiubo Li <xiubli@redhat.com>
Fri, 24 Apr 2020 09:05:54 +0000 (05:05 -0400)
To fix "stderr:dd: invalid number: '5.0'".

Fixes: https://tracker.ceph.com/issues/45247
Signed-off-by: Xiubo Li <xiubli@redhat.com>
qa/tasks/cephfs/mount.py

index 459f766421db6b24ac5eebd65eb9fe6c1d5eef33..00b1f14c0f48102a277170e86503d5b0e374b898 100644 (file)
@@ -809,8 +809,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):