Commit d91fa93
committed
throtl/rc: support test with scsi_debug
Currently, the throtl test cases set up null_blk devices as test
targets. It is desired to run the tests with scsi_debug devices also
to expand test coverage and identify failures that do not surface with
null_blk as shown in the Link.
Introduce the global variable throtl_blkdev_type to choose the test
target block device type. When 'nullb' is set to it, run the tests
with null_blk. When 'sdebug' is set, run with scsi_debug. The command
line below runs the throtl group with scsi_debug.
$ sudo bash -c "throtl_blkdev_type=sdebug ./check throtl"
Modify the helper functions _configure_throtl_blkdev(),
_delete_throtl_blkdev() and _exit_throtl_blkdev() to support both
null_blk and scsi_debug. After this change, the global variable
THROTL_DEV is no longer constant then shellcheck warns about its
references. Add double quotations to suppress the shellcheck warnings.
Link: https://lore.kernel.org/linux-block/[email protected]/
Reviewed-by: Chaitanya Kulkarni <[email protected]>
Signed-off-by: Shin'ichiro Kawasaki <[email protected]>1 parent 95b5003 commit d91fa93
1 file changed
Lines changed: 50 additions & 13 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| 9 | + | |
9 | 10 | | |
10 | 11 | | |
11 | 12 | | |
12 | | - | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
13 | 16 | | |
14 | 17 | | |
15 | 18 | | |
16 | 19 | | |
17 | 20 | | |
18 | 21 | | |
| 22 | + | |
19 | 23 | | |
20 | 24 | | |
21 | 25 | | |
22 | 26 | | |
23 | 27 | | |
| 28 | + | |
24 | 29 | | |
25 | 30 | | |
26 | 31 | | |
| |||
42 | 47 | | |
43 | 48 | | |
44 | 49 | | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
51 | 72 | | |
52 | 73 | | |
53 | 74 | | |
54 | 75 | | |
55 | | - | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
56 | 86 | | |
57 | 87 | | |
58 | 88 | | |
59 | | - | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
60 | 97 | | |
61 | 98 | | |
62 | 99 | | |
| |||
101 | 138 | | |
102 | 139 | | |
103 | 140 | | |
104 | | - | |
| 141 | + | |
105 | 142 | | |
106 | 143 | | |
107 | 144 | | |
108 | 145 | | |
109 | | - | |
| 146 | + | |
110 | 147 | | |
111 | 148 | | |
112 | 149 | | |
| |||
145 | 182 | | |
146 | 183 | | |
147 | 184 | | |
148 | | - | |
| 185 | + | |
149 | 186 | | |
150 | | - | |
| 187 | + | |
151 | 188 | | |
152 | 189 | | |
153 | 190 | | |
| |||
0 commit comments