]> 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)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Mon, 27 Jan 2025 18:04:50 +0000 (19:04 +0100)
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.

(cherry picked from commit d3d501e94930c3865f13c881a23980941cce079f)

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()