Skip to content

Commit 5533bc7

Browse files
Ming Leiaxboe
authored andcommitted
selftests: ublk: fix recover test
When adding recovery test: - 'break' is missed for handling '-g' argument - test name of test_generic_05.sh is wrong So fix the two. Fixes: 57e13a2 ("selftests: ublk: support user recovery") Signed-off-by: Ming Lei <ming.lei@redhat.com> Reviewed-by: Uday Shankar <ushankar@purestorage.com> Link: https://lore.kernel.org/r/20250421235947.715272-2-ming.lei@redhat.com Signed-off-by: Jens Axboe <axboe@kernel.dk>
1 parent e03463d commit 5533bc7

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

tools/testing/selftests/ublk/kublk.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1354,6 +1354,7 @@ int main(int argc, char *argv[])
13541354
value = strtol(optarg, NULL, 10);
13551355
if (value)
13561356
ctx.flags |= UBLK_F_NEED_GET_DATA;
1357+
break;
13571358
case 0:
13581359
if (!strcmp(longopts[option_idx].name, "debug_mask"))
13591360
ublk_dbg_mask = strtol(optarg, NULL, 16);

tools/testing/selftests/ublk/test_generic_05.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
. "$(cd "$(dirname "$0")" && pwd)"/test_common.sh
55

6-
TID="generic_04"
6+
TID="generic_05"
77
ERR_CODE=0
88

99
ublk_run_recover_test()

0 commit comments

Comments
 (0)