attach_device: Fail early if attach-device command return value is not
expected

If test fail at attach-device step, it's unnecessary to run
preboot_action  and postboot_action steps.

Signed-off-by: Yanbing Du <ydu@redhat.com>