From 65f97690af8ca49e7a8b508621bf47d4fc004853 Mon Sep 17 00:00:00 2001 From: Xiubo Li Date: Thu, 23 Apr 2020 17:31:24 -0400 Subject: [PATCH] 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 --- qa/tasks/cephfs/mount.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qa/tasks/cephfs/mount.py b/qa/tasks/cephfs/mount.py index 459f766421d..00b1f14c0f4 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): -- 2.39.5