forked from bartvdbraak/blender
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:
parent
c6a99e021a
commit
ac41215f07
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user