Assert no spaces in crate features JSON

Spaces in the `crate_features` JSON value can cause errors when running
kcov.

Fixes: https://github.com/rust-vmm/rust-vmm-ci/issues/74

Signed-off-by: Ahmed Abouzied <email@aabouzied.com>
This commit is contained in:
Ahmed Abouzied
2021-10-11 14:47:24 +02:00
committed by Laura Loghin
parent 68d4dbf85c
commit 7931077cdc

View File

@@ -51,6 +51,9 @@ def _read_test_config():
assert "exclude_path" in coverage_config
assert "crate_features" in coverage_config
assert ' ' not in coverage_config["crate_features"], \
"spaces are not allowed in crate_features value"
return coverage_config