Skip to content

Commit

Permalink
dm: test: Fix partition test to use mmc2
Browse files Browse the repository at this point in the history
d94d984 ("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 <[email protected]>
Reviewed-by: Simon Glass <[email protected]>
Reviewed-by: Jaehoon Chung <[email protected]>
  • Loading branch information
JPEWdev authored and trini committed Jul 17, 2023
1 parent 8900ba1 commit 19c961e
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions test/dm/part.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 19c961e

Please sign in to comment.