From: Xiubo Li Date: Thu, 23 Apr 2020 21:31:24 +0000 (-0400) Subject: qa/tasks/cephfs/mount: to make sure that the count/seek are int type X-Git-Tag: v16.1.0~2519^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=65f97690af8ca49e7a8b508621bf47d4fc004853;p=ceph.git qa/tasks/cephfs/mount: to make sure that the count/seek are int type To fix "stderr:dd: invalid number: '5.0'". Fixes: https://tracker.ceph.com/issues/45247 Signed-off-by: Xiubo Li --- diff --git a/qa/tasks/cephfs/mount.py b/qa/tasks/cephfs/mount.py index 459f766421db..00b1f14c0f48 100644 --- a/qa/tasks/cephfs/mount.py +++ b/qa/tasks/cephfs/mount.py @@ -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):