From 7931077cdc577edc20af54bf4786de750886fb85 Mon Sep 17 00:00:00 2001 From: Ahmed Abouzied Date: Mon, 11 Oct 2021 14:47:24 +0200 Subject: [PATCH] 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 --- integration_tests/test_coverage.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/integration_tests/test_coverage.py b/integration_tests/test_coverage.py index b4dca47..37217aa 100644 --- a/integration_tests/test_coverage.py +++ b/integration_tests/test_coverage.py @@ -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