Commit 7191a14
[SPARK-54450][INFRA] Allow run-tests to accept unittest style string for test names
### What changes were proposed in this pull request?
Allow `run-tests` to take unittest style string like `test_module.TestClass.test_case`, in addition to `test_module TestClass.test_case`.
Also some extra check is added for the existence of the test module - we are not sending it to `bin/pyspark` if we can't find the module.
### Why are the changes needed?
It's extra work to split the string when copy/paste directly from unittest output (CI failures for example).
### Does this PR introduce _any_ user-facing change?
No
### How was this patch tested?
Manually confirmed the `.` connection works and the original way is not impacted (except that we have some new checks for the module).
### Was this patch authored or co-authored using generative AI tooling?
No.
Closes #53157 from gaogaotiantian/improve-run-test.
Authored-by: Tian Gao <[email protected]>
Signed-off-by: Ruifeng Zheng <[email protected]>1 parent c6e8dbe commit 7191a14
2 files changed
+46
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
39 | 46 | | |
40 | 47 | | |
41 | 48 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| 23 | + | |
23 | 24 | | |
24 | 25 | | |
25 | 26 | | |
| |||
224 | 225 | | |
225 | 226 | | |
226 | 227 | | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
227 | 264 | | |
228 | 265 | | |
229 | 266 | | |
| |||
256 | 293 | | |
257 | 294 | | |
258 | 295 | | |
| 296 | + | |
259 | 297 | | |
260 | 298 | | |
261 | 299 | | |
| |||
312 | 350 | | |
313 | 351 | | |
314 | 352 | | |
315 | | - | |
| 353 | + | |
316 | 354 | | |
317 | 355 | | |
318 | 356 | | |
| |||
0 commit comments