Commit 320ddc0
test_runner: centralize CLI option handling
The test runner relies on a few CLI options. That code was spread
across a few locations. This commit centralizes that logic.
PR-URL: #46707
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com>
Reviewed-By: Moshe Atlow <moshe@atlow.co.il>
Reviewed-By: James M Snell <jasnell@gmail.com>1 parent e5b8597 commit 320ddc0Copy full SHA for 320ddc0
File tree
Expand file treeCollapse file tree
3 files changed
+65
-27
lines changedOpen diff view settings
Filter options
- lib/internal/test_runner
Expand file treeCollapse file tree
3 files changed
+65
-27
lines changedOpen diff view settings
Collapse file
lib/internal/test_runner/harness.js
Copy file name to clipboardExpand all lines: lib/internal/test_runner/harness.js+14-8Lines changed: 14 additions & 8 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
16 | 16 | |
17 | 17 | |
18 | 18 | |
19 | | - |
20 | 19 | |
21 | | - |
| 20 | + |
| 21 | + |
| 22 | + |
| 23 | + |
22 | 24 | |
23 | 25 | |
24 | | - |
25 | 26 | |
26 | 27 | |
27 | 28 | |
| ||
56 | 57 | |
57 | 58 | |
58 | 59 | |
59 | | - |
60 | | - |
| 60 | + |
| 61 | + |
61 | 62 | |
62 | 63 | |
63 | 64 | |
| ||
98 | 99 | |
99 | 100 | |
100 | 101 | |
| 102 | + |
| 103 | + |
| 104 | + |
| 105 | + |
| 106 | + |
101 | 107 | |
102 | 108 | |
103 | 109 | |
| ||
122 | 128 | |
123 | 129 | |
124 | 130 | |
125 | | - |
| 131 | + |
126 | 132 | |
127 | 133 | |
128 | 134 | |
| ||
142 | 148 | |
143 | 149 | |
144 | 150 | |
145 | | - |
146 | | - |
| 151 | + |
| 152 | + |
147 | 153 | |
148 | 154 | |
149 | 155 | |
|
Collapse file
lib/internal/test_runner/test.js
Copy file name to clipboardExpand all lines: lib/internal/test_runner/test.js+2-13Lines changed: 2 additions & 13 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
1 | 1 | |
2 | 2 | |
3 | | - |
4 | 3 | |
5 | 4 | |
6 | 5 | |
| ||
31 | 30 | |
32 | 31 | |
33 | 32 | |
34 | | - |
35 | 33 | |
36 | 34 | |
37 | 35 | |
38 | | - |
39 | 36 | |
40 | 37 | |
| 38 | + |
41 | 39 | |
42 | 40 | |
43 | 41 | |
| ||
64 | 62 | |
65 | 63 | |
66 | 64 | |
67 | | - |
68 | | - |
69 | | - |
70 | | - |
71 | | - |
72 | | - |
73 | | - |
74 | | - |
75 | | - |
76 | 65 | |
77 | 66 | |
78 | 67 | |
79 | 68 | |
80 | 69 | |
81 | 70 | |
82 | | - |
| 71 | + |
83 | 72 | |
84 | 73 | |
85 | 74 | |
|
Collapse file
lib/internal/test_runner/utils.js
Copy file name to clipboardExpand all lines: lib/internal/test_runner/utils.js+49-6Lines changed: 49 additions & 6 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
1 | 1 | |
2 | 2 | |
| 3 | + |
3 | 4 | |
4 | 5 | |
5 | 6 | |
| ||
148 | 149 | |
149 | 150 | |
150 | 151 | |
| 152 | + |
| 153 | + |
| 154 | + |
| 155 | + |
| 156 | + |
| 157 | + |
| 158 | + |
| 159 | + |
| 160 | + |
| 161 | + |
| 162 | + |
| 163 | + |
| 164 | + |
| 165 | + |
| 166 | + |
| 167 | + |
| 168 | + |
151 | 169 | |
152 | 170 | |
| 171 | + |
| 172 | + |
153 | 173 | |
154 | 174 | |
155 | 175 | |
| ||
160 | 180 | |
161 | 181 | |
162 | 182 | |
163 | | - |
164 | | - |
| 183 | + |
| 184 | + |
| 185 | + |
| 186 | + |
| 187 | + |
165 | 188 | |
166 | 189 | |
167 | | - |
168 | | - |
169 | | - |
170 | | - |
| 190 | + |
| 191 | + |
| 192 | + |
| 193 | + |
| 194 | + |
| 195 | + |
| 196 | + |
| 197 | + |
| 198 | + |
| 199 | + |
| 200 | + |
171 | 201 | |
| 202 | + |
| 203 | + |
| 204 | + |
| 205 | + |
| 206 | + |
| 207 | + |
| 208 | + |
| 209 | + |
| 210 | + |
| 211 | + |
| 212 | + |
| 213 | + |
172 | 214 | |
173 | 215 | |
174 | 216 | |
| ||
177 | 219 | |
178 | 220 | |
179 | 221 | |
| 222 | + |
180 | 223 | |
181 | 224 | |
0 commit comments