]> git.baikalelectronics.ru Git - uboot.git/commit
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)
commiteb5c9090133f92db1ec46804d69b1a5d695f168d
treea37dec5b1c44219324f934b69902f4d45a5dde6b
parentfd7ec2a4c5aeaabbfef207a3c425a285933dc7e3
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