Commit c9cf556
authored
Skip dummy subtest when EnvMatrix expands to empty (#4893)
## Changes
When all EnvMatrix values are empty lists (e.g.,
`DATABRICKS_BUNDLE_ENGINE = []`), run the test directly without creating
a `#00` dummy subtest.
Before:
```
--- PASS: TestAccept/bundle/foo (0.00s)
--- PASS: TestAccept/bundle/foo/#00 (1.23s)
```
After:
```
--- PASS: TestAccept/bundle/foo (1.23s)
```
This allows tests to opt out of the default engine matrix by setting
`DATABRICKS_BUNDLE_ENGINE = []` without creating a confusingly-named
subtest.
## Tests
Added selftests:
- `selftest/envmatrix_empty` — verifies no subtest is created when all
EnvMatrix values are empty
- `selftest/envmatrix_mixed` — verifies empty vars are dropped while
non-empty vars still create subtests1 parent 6988c16 commit c9cf556
File tree
9 files changed
+40
-8
lines changed- acceptance
- selftest
- envmatrix_empty
- envmatrix_mixed
9 files changed
+40
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
416 | 416 | | |
417 | 417 | | |
418 | 418 | | |
419 | | - | |
420 | | - | |
421 | | - | |
422 | | - | |
423 | | - | |
424 | | - | |
425 | | - | |
426 | | - | |
| 419 | + | |
| 420 | + | |
| 421 | + | |
| 422 | + | |
| 423 | + | |
| 424 | + | |
| 425 | + | |
| 426 | + | |
| 427 | + | |
| 428 | + | |
| 429 | + | |
| 430 | + | |
| 431 | + | |
| 432 | + | |
427 | 433 | | |
428 | 434 | | |
429 | 435 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
0 commit comments