KVM test: allow definition of multiple cdroms

Instead of using 'cdrom_extra', define 'cdroms' similarly to 'images'.
Also set -drive indices for cd1 and image1.
Also fix regular expression in tests.cfg.sample, so it doesn't match 'cdroms'
when it shouldn't.

Note: if you use your own tests.cfg, you should change the line

cdrom.* ?<= ...

to

cdrom(_.*)? ?<= ...

It won't hurt to do the same for image_name.


git-svn-id: http://test.kernel.org/svn/autotest/trunk@4728 592f7852-d20e-0410-864c-8624ca9c26a4
3 files changed