From c83951754e15103eeb8da3783f91a07bcfcea205 Mon Sep 17 00:00:00 2001 From: David Hewitt <1939362+davidhewitt@users.noreply.github.com> Date: Fri, 25 Aug 2023 09:26:57 +0100 Subject: [PATCH] fix escaping of llvm-cov output --- noxfile.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/noxfile.py b/noxfile.py index 2b4b694d..c1d5a090 100644 --- a/noxfile.py +++ b/noxfile.py @@ -606,7 +606,11 @@ def _get_coverage_env() -> Dict[str, str]: for line in output.strip().splitlines(): (key, value) = line.split("=", maxsplit=1) - env[key] = value.strip('"') + # Strip single or double quotes from the variable value + # - quote used by llvm-cov differs between Windows and Linux + if value and value[0] in ("'", '"'): + value = value[1:-1] + env[key] = value # Ensure that examples/ and pytests/ all build to the correct target directory to collect # coverage artifacts.