diff --git a/test cases/unit/35 dist script/subprojects/sub/dist-script.py b/test cases/unit/35 dist script/subprojects/sub/dist-script.py index 5f1b4a124..5166a26f5 100644 --- a/test cases/unit/35 dist script/subprojects/sub/dist-script.py +++ b/test cases/unit/35 dist script/subprojects/sub/dist-script.py @@ -12,7 +12,7 @@ source_root = pathlib.Path(os.environ['MESON_PROJECT_DIST_ROOT']) mesonrewrite = shlex.split(os.environ['MESONREWRITE']) rewrite_cmd = ['kwargs', 'set', 'project', '/', 'version', 'release'] -subprocess.run([*mesonrewrite, '-s', source_root, *rewrite_cmd], check=True) +subprocess.run([*mesonrewrite, '-s', str(source_root.absolute()), *rewrite_cmd], check=True) modfile = source_root / 'prog.c' with modfile.open('w') as f: