diff options
| author | Dylan Baker <dylan@pnwbakers.com> | 2024-07-17 09:26:50 -0700 |
|---|---|---|
| committer | Eli Schwartz <eschwartz93@gmail.com> | 2024-08-15 14:10:37 -0400 |
| commit | 67b238d6161d79674dc513cafed5236eb255dddd (patch) | |
| tree | 8237bc5642db340af14d1855fbaab87bc8b35444 /test cases/unit | |
| parent | 85e92331cba16f038115be241e87634f69f74e78 (diff) | |
| download | meson-67b238d6161d79674dc513cafed5236eb255dddd.tar.gz | |
unittests: fix git dist test on Windows with Python < 3.8
pathlib.Path objects are not supported in subprocess calls on Windows
before Python 3.8, so we must convert to a string.
Diffstat (limited to 'test cases/unit')
| -rw-r--r-- | test cases/unit/35 dist script/subprojects/sub/dist-script.py | 2 |
1 files changed, 1 insertions, 1 deletions
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: |
