From da82314e8d5f7aa5815b05a1025c9fae91884756 Mon Sep 17 00:00:00 2001 From: Xiaoling Gao Date: Mon, 18 Dec 2023 17:05:20 +0800 Subject: [PATCH] virtio_fs: use dd cmd to create file Echo cmd sometimes cause timeout issue in automation, and the main test point isn't create files in this case, so using dd cmd to instead of echo cmd. Signed-off-by: Xiaoling Gao --- qemu/tests/cfg/virtio_fs_host_owner_win.cfg | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/qemu/tests/cfg/virtio_fs_host_owner_win.cfg b/qemu/tests/cfg/virtio_fs_host_owner_win.cfg index 92656a7153..01d1850381 100644 --- a/qemu/tests/cfg/virtio_fs_host_owner_win.cfg +++ b/qemu/tests/cfg/virtio_fs_host_owner_win.cfg @@ -43,7 +43,8 @@ virtio_win_media_type = iso cdroms += " virtio" devcon_path = "WIN_UTILS:\devcon\${devcon_dirname}\devcon.exe" - create_file_cmd = 'echo test > %s' + # workaround to create a file instead of 'echo' cmd + create_file_cmd = 'dd if=/dev/random of=%s bs=1M count=20' change_source_owner = chown test:test %s change_source_perm = chmod o+w %s variants: