Fix Python error in benchmark executable detection after recent changes
This commit is contained in:
parent
abf3ce811f
commit
22b03e1c68
|
@ -122,7 +122,7 @@ class TestEnvironment:
|
|||
executable = executable / self._blender_executable_name()
|
||||
elif not executable.is_file() and executable.name == 'blender':
|
||||
# Executable path without proper path on Windows or macOS.
|
||||
executable = executable.parent() / self._blender_executable_name()
|
||||
executable = executable.parent / self._blender_executable_name()
|
||||
|
||||
if executable.is_file():
|
||||
return executable
|
||||
|
|
|
@ -125,10 +125,10 @@ def run_entry(env: api.TestEnvironment, config: api.TestConfig, row: List, entry
|
|||
entry.error_msg = 'Failed to build'
|
||||
|
||||
# Run test and update output and status.
|
||||
entry.status = 'running'
|
||||
print_row(config, row, end='\r')
|
||||
|
||||
if executable_ok:
|
||||
entry.status = 'running'
|
||||
print_row(config, row, end='\r')
|
||||
|
||||
try:
|
||||
entry.output = test.run(env, device_id)
|
||||
if not entry.output:
|
||||
|
|
Loading…
Reference in New Issue