Commit 5533bc70 authored by Ming Lei's avatar Ming Lei Committed by Jens Axboe
Browse files

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: 57e13a2e ("selftests: ublk: support user recovery")
Signed-off-by: default avatarMing Lei <ming.lei@redhat.com>
Reviewed-by: default avatarUday Shankar <ushankar@purestorage.com>
Link: https://lore.kernel.org/r/20250421235947.715272-2-ming.lei@redhat.com


Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent e03463d2
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -1354,6 +1354,7 @@ int main(int argc, char *argv[])
			value = strtol(optarg, NULL, 10);
			if (value)
				ctx.flags |= UBLK_F_NEED_GET_DATA;
			break;
		case 0:
			if (!strcmp(longopts[option_idx].name, "debug_mask"))
				ublk_dbg_mask = strtol(optarg, NULL, 16);
+1 −1
Original line number Diff line number Diff line
@@ -3,7 +3,7 @@

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

TID="generic_04"
TID="generic_05"
ERR_CODE=0

ublk_run_recover_test()