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.
This commit is contained in:
Sybren A. Stüvel 2020-08-17 20:07:45 +02:00
parent c6a99e021a
commit ac41215f07
1 changed files with 3 additions and 1 deletions

View File

@ -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