Skip to content

Commit

Permalink
virtio_fs: use dd cmd to create file
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
xiagao committed Aug 15, 2024
1 parent 9845a43 commit da82314
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion qemu/tests/cfg/virtio_fs_host_owner_win.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit da82314

Please sign in to comment.