diff options
author | Sybren A. Stüvel <sybren@blender.org> | 2020-08-17 21:07:45 +0300 |
---|---|---|
committer | Sybren A. Stüvel <sybren@blender.org> | 2020-08-17 21:08:01 +0300 |
commit | ac41215f074f37859a44adeef04711c24572ebc1 (patch) | |
tree | b25a5457c809156cade63c10928568b12fc3703c /tests/python | |
parent | c6a99e021ac97983af97fe8f9b740b4a7cb16568 (diff) |
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.
Diffstat (limited to 'tests/python')
-rw-r--r-- | tests/python/alembic_export_tests.py | 4 |
1 files changed, 3 insertions, 1 deletions
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 |