]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
test: Make sure we run lcov from the meson source directory
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Wed, 22 Jan 2025 13:55:45 +0000 (14:55 +0100)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 22 Jan 2025 16:32:37 +0000 (01:32 +0900)
In ac75c5192797082c1965ab30be4711490f2937bc, we accidentally changed
the working directory that the tools executed in the wrapper script
are invoked in. This broke our invocations of lcov. Let's explicitly
run those in the meson source directory again to fix the coverage
workflow.

test/integration-test-wrapper.py

index cc6e9656fd856ff8d42a6330ea5a3e0dd7ec94dc..79348bbf62b3f8ab26cd0b4eae42233aba43a635 100755 (executable)
@@ -326,6 +326,7 @@ def process_coverage(args: argparse.Namespace, summary: Summary, name: str, jour
                     '--quiet',
                 ],
                 check=True,
+                cwd=os.fspath(args.meson_source_dir),
             )  # fmt: skip
 
             subprocess.run(
@@ -338,6 +339,7 @@ def process_coverage(args: argparse.Namespace, summary: Summary, name: str, jour
                     '--quiet',
                 ],
                 check=True,
+                cwd=os.fspath(args.meson_source_dir),
             )  # fmt: skip
 
             Path(f'{output}.new').unlink()