Modify for block disk source type error for detach_device test

Modify the error that when disk type is block, the source type should changed to dev instead of file