Fix Python error in benchmark executable detection after recent changes

This commit is contained in:
Brecht Van Lommel 2021-07-22 18:36:45 +02:00
parent abf3ce811f
commit 22b03e1c68
2 changed files with 4 additions and 4 deletions

View File

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

View File

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