autotest/autotest — pull request #308 by ldoktor (2012-04-18 16:14:06+00:00)
Title: virt: Support for indirect image_name definition

Hi,

this patch adds support for indirect image_name specification. The purpose is to set wildcard + offset instead of the exact name.

I'm using it for testing devices I add in the test. Eg. I use pre_script = "modprobe scsi_debug" which adds new /dev/sg? device. I know it's the last device so I can set the wildcard "/dev/sg?" and offset '-1'.

To prevent data loss I added blacklist with support for re which protects /dev/sda.* /dev/hda.* ...

For details please see the patch.

Regards,
Lukáš Doktor