subunit2sql/releasenotes/notes/remove-test-attr-prefix-dff9d378a5e940ab.yaml
Andrea Frittoli (andreaf) 04893053c7 Remove the test_attr_prefix before injecting
The test_attr_prefix allows filtering test attributes for injection
into the test_metadata table. Such attributes only get a prefix for
the sake of filtering, so the prefix should be removed before they
are injected into the DB.

This is a change in behaviour, but I believe it's safe to do so,
since the CLI option was broken until now, which suggests no-one was
using it really.

Change-Id: I0cf3701a143f6fb71d03a0a7bdfb0a84c107ecbe
2016-08-17 16:12:52 +01:00

16 lines
677 B
YAML

---
features:
- A new CLI / configuration option remove_test_attr_prefix
is available to remove the test attribute prefix from test
attributes before they are added to the test metadata.
The CLI option defaults to False, so that the current
behavior is preserved. It is only applicable when used in
combination with test_attr_prefix.
upgrade:
- The test attribute prefix is removed from the
test attributes before they are injected into the DB,
when using the remove_test_attr_prefix config/CLI option.
If metadata was injected before, enabling
remove_test_attr_prefix may lead to test metadata
duplication, with and without prefix.