Currently, autotest use such as /dev/sda.* to get the disk of the blacklist, but this will raise an error if the disk 'sdaa' or some name like this, it's not correct as we just want to add sda or name like sda1-9 to the blacklist.
change the pattern to /dev/sda[\d]* can avoid this. Signed-off-by: Mike Qiu<[email protected]> --- shared/cfg/base.cfg | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shared/cfg/base.cfg b/shared/cfg/base.cfg index 414d4d5..85308ac 100644 --- a/shared/cfg/base.cfg +++ b/shared/cfg/base.cfg @@ -389,7 +389,7 @@ netdev_peer_re = "\s{2,}(.*?): .*?\\\s(.*?):" image_clone_commnad = 'cp --reflink=auto %s %s' image_remove_commnad = 'rm -rf %s' -indirect_image_blacklist = "/dev/hda.* /dev/sda.* /dev/sg0 /dev/md0" +indirect_image_blacklist = "/dev/hda[\d]* /dev/sda[\d]* /dev/sg0 /dev/md0" # Guest screen max inactive time until taking actions (log or throw errors) inactivity_treshold = 1800 -- 1.7.11.7 _______________________________________________ Autotest-kernel mailing list [email protected] https://www.redhat.com/mailman/listinfo/autotest-kernel
