summaryrefslogtreecommitdiff
path: root/test cases/unit
diff options
context:
space:
mode:
authorDylan Baker <dylan@pnwbakers.com>2024-07-17 09:26:50 -0700
committerEli Schwartz <eschwartz93@gmail.com>2024-08-15 14:10:37 -0400
commit67b238d6161d79674dc513cafed5236eb255dddd (patch)
tree8237bc5642db340af14d1855fbaab87bc8b35444 /test cases/unit
parent85e92331cba16f038115be241e87634f69f74e78 (diff)
downloadmeson-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.py2
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: