Change the path of floppy images
First, The original relative path of floppy images are not exist. There is no
'data/images/' folders under 'shared' folder by default, It causes 'dd' command
failures.
If adding code into 'pre_command' of readonly_floppy.cfg to check/create
'shared/data/images/', Then the second issue jumps out:
Because 'process_command' function in env_process.py will perform
... "cd %s; %s" % (test.bindir, pre_command) ...
The test.bindir's value is assigned to '/usr/share/avocado-plugins-vt',
So we got 2 fl images under /usr/share/avocado-plugins-vt/shared/data/images/.
But in the final qemu command line parameters which generating by avocado,
The path of floppy image is /usr/share/avocado/data/avocado-vt/images/...
So I think that we insert 'cd /usr/share/avocado' to pre_command for ignoring
the effect of 'cd /usr/share/avocado-plugins-vt' and change the original
relative path info from 'shared/data/images/' to 'data/avocado-vt/images/' may
be a better choice.
Signed-off-by: NLin Ma <lma@suse.com>
Showing
想要评论请 注册 或 登录