test: dm: blk: Correct blk_base test case
authorBin Meng <bmeng.cn@gmail.com>
Mon, 15 Oct 2018 09:21:04 +0000 (02:21 -0700)
committerSimon Glass <sjg@chromium.org>
Wed, 14 Nov 2018 17:16:27 +0000 (09:16 -0800)
commitfa583f86c97f407997f1c46b8009b26c4c58efb9
treea37dec5b1c44219324f934b69902f4d45a5dde6b
parentf371ad3064699f460711523db5e8177a0fc7b22e
test: dm: blk: Correct blk_base test case

The blk_base test case creates a USB mass storage block device with
the Sandbox host block device as its parent. This does not make any
sense and causes potential issue, for example if the test case tries
to read/write anything on the USB mass storage block device it will
definitely fail as its parent is not on USB bus at all.

Correct the test case by creating another Sandbox host block device
instead of the USB mass storage one and adjust the case accordingly.

Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
test/dm/blk.c