Commit 877ff93
authored
testrunner: automatically allow parent testcase failure (#3737)
## Changes
- Include logs when test is passed on retry so that it's clear it does
not cause the failure.
- Automatically match parent tests cases.
## Why
If you have a subtest failure, parent test fails as well. Rather than
requiring to specify all parent tests, we automatically allow them.
Inspired by this output:
```
acceptance TestAccept/bundle/templates/default-python/combinations/classic/DATABRICKS_BUNDLE_ENGINE=direct-exp/DLT=no/NBOOK=no/PY=no failure is not allowed
acceptance TestAccept/bundle/templates/default-python/combinations/classic/DATABRICKS_BUNDLE_ENGINE=direct-exp/DLT=no/NBOOK=no/PY=yes failure is not allowed
acceptance TestAccept/bundle/templates/default-python/combinations/classic failure is not allowed
acceptance TestAccept failure is not allowed
```
Here parent tests are
'TestAccept/bundle/templates/default-python/combinations/classic' and
'TestAccept'. So if known_failures.txt specifies "acceptance
TestAccept/bundle/templates/default-python/combinations/classic/" then
TestAccept would not match without this PR.
If users specify "acceptance
TestAccept/bundle/templates/default-python/combinations/classic/DATABRICKS_BUNDLE_ENGINE=direct-exp/DLT=no/NBOOK=no/PY=no"
then neither "TestAccept" nor
"TestAccept/bundle/templates/default-python/combinations/classic" would
match without this PR.
## Tests
Unit tests.1 parent 8f89312 commit 877ff93
2 files changed
+20
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
188 | 188 | | |
189 | 189 | | |
190 | 190 | | |
191 | | - | |
| 191 | + | |
| 192 | + | |
192 | 193 | | |
193 | 194 | | |
194 | 195 | | |
| |||
328 | 329 | | |
329 | 330 | | |
330 | 331 | | |
331 | | - | |
| 332 | + | |
332 | 333 | | |
333 | | - | |
| 334 | + | |
334 | 335 | | |
335 | 336 | | |
336 | 337 | | |
337 | 338 | | |
338 | 339 | | |
339 | | - | |
340 | | - | |
| 340 | + | |
| 341 | + | |
341 | 342 | | |
342 | 343 | | |
343 | | - | |
| 344 | + | |
344 | 345 | | |
345 | 346 | | |
346 | | - | |
| 347 | + | |
347 | 348 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
45 | 57 | | |
46 | 58 | | |
47 | 59 | | |
| |||
0 commit comments