utils_test.libvirt: Update logic of generating disks index.

Signed-off-by: Yu Mingfei <yumingfei@cn.fujitsu.com>