The shtest-inject test relied on being executed in "single process" mode and started to fail with a `PicklingError` after it was removed: ``` Can't pickle <class 'lit.TestingConfig.CustomFormat'>: attribute lookup lit.TestingConfig.CustomFormat failed ``` This happened because the test config has to be serialized to the worker process, but apparently the `CustomFormat` class defined inline is not serializable. This change allows passing the tested functionality (preamble_commands) directly to `lit.formats.ShTest` so we can use it directly in the test. |
||
|---|---|---|
| .. | ||
| allow-retries | ||
| config-map-discovery | ||
| discovery | ||
| exec-discovery | ||
| exec-discovery-in-tree | ||
| fake-externals | ||
| googletest-format | ||
| googletest-timeout | ||
| googletest-upstream-format | ||
| lit-opts | ||
| max-failures | ||
| parallelism-groups | ||
| progress-bar | ||
| py-config-discovery | ||
| shtest-env | ||
| shtest-format | ||
| shtest-inject | ||
| shtest-not | ||
| shtest-output-printing | ||
| shtest-recursive-substitution | ||
| shtest-run-at-line | ||
| shtest-shell | ||
| shtest-timeout | ||
| test-data | ||
| test-data-micro | ||
| test_retry_attempts | ||
| testrunner-custom-parsers | ||
| unittest-adaptor | ||
| xunit-output | ||
| lit.cfg | ||