[PATCH v2 1/5] dm: test: Fix partition test to use mmc2

Jaehoon Chung jh80.chung at samsung.com
Wed Jul 5 02:16:55 CEST 2023



> -----Original Message-----
> From: U-Boot <u-boot-bounces at lists.denx.de> On Behalf Of Joshua Watt
> Sent: Monday, July 3, 2023 10:40 PM
> To: u-boot at lists.denx.de
> Cc: Joshua Watt <JPEWhacker at gmail.com>; Simon Glass <sjg at chromium.org>
> Subject: [PATCH v2 1/5] dm: test: Fix partition test to use mmc2
> 
> d94d9844bc ("dm: part: Update test to use mmc2") attempted to make the
> test use mmc2, but the change was incomplete in that it didn't also
> change the strings that reference a specific partition. Fix these so
> that the test passes again
> 
> Signed-off-by: Joshua Watt <JPEWhacker at gmail.com>

Reviewed-by: Jaehoon Chung <jh80.chung at samsung.com>

Best Regards,
Jaehoon Chung

> ---
>  test/dm/part.c | 18 +++++++++---------
>  1 file changed, 9 insertions(+), 9 deletions(-)
> 
> diff --git a/test/dm/part.c b/test/dm/part.c
> index 35e99eeb01..d5c58d6e3f 100644
> --- a/test/dm/part.c
> +++ b/test/dm/part.c
> @@ -76,15 +76,15 @@ static int dm_test_part(struct unit_test_state *uts)
>  	test(-EINVAL, "#test1", true);
>  	test(1, "2", false);
>  	test(1, "2", true);
> -	test(-ENOENT, "1:0", false);
> -	test(0, "1:0", true);
> -	test(1, "1:1", false);
> -	test(2, "1:2", false);
> -	test(1, "1.0", false);
> -	test(0, "1.0:0", true);
> -	test(1, "1.0:1", false);
> -	test(2, "1.0:2", false);
> -	test(-EINVAL, "1#bogus", false);
> +	test(-ENOENT, "2:0", false);
> +	test(0, "2:0", true);
> +	test(1, "2:1", false);
> +	test(2, "2:2", false);
> +	test(1, "2.0", false);
> +	test(0, "2.0:0", true);
> +	test(1, "2.0:1", false);
> +	test(2, "2.0:2", false);
> +	test(-EINVAL, "2#bogus", false);
>  	test(1, "2#test1", false);
>  	test(2, "2#test2", false);
>  	ret = 0;
> --
> 2.33.0




More information about the U-Boot mailing list