From ac41215f074f37859a44adeef04711c24572ebc1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sybren=20A=2E=20St=C3=BCvel?= Date: Mon, 17 Aug 2020 20:07:45 +0200 Subject: Tests: fix Alembic export test on Windows Convert all `subprocess.run()` arguments to string, to prevent breaking "does this argument need quoting" checks on Windows. --- tests/python/alembic_export_tests.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'tests') diff --git a/tests/python/alembic_export_tests.py b/tests/python/alembic_export_tests.py index cacd2f2dd0e..b5d6bf65f3f 100644 --- a/tests/python/alembic_export_tests.py +++ b/tests/python/alembic_export_tests.py @@ -67,7 +67,9 @@ class AbstractAlembicTest(AbstractBlenderRunnerTest): """ command = (self.alembic_root / 'bin' / 'abcls', *arguments) - proc = subprocess.run(command, stdout=subprocess.PIPE, stderr=subprocess.STDOUT, + # Convert Path to str; Path works fine on Linux, but not on Windows. + command_str = [str(arg) for arg in command] + proc = subprocess.run(command_str, stdout=subprocess.PIPE, stderr=subprocess.STDOUT, timeout=30) coloured_output = proc.stdout -- cgit v1.2.3