diff options
author | Brecht Van Lommel <brecht@blender.org> | 2021-07-22 19:36:45 +0300 |
---|---|---|
committer | Brecht Van Lommel <brecht@blender.org> | 2021-07-26 19:04:40 +0300 |
commit | 22b03e1c689561298c46704ca1a99a686ed8e0b5 (patch) | |
tree | e5661de57d84425c7a62a01bc8a815d240165d0f /tests | |
parent | abf3ce811f6e33213a51941b477668750d45c5b4 (diff) |
Fix Python error in benchmark executable detection after recent changes
Diffstat (limited to 'tests')
-rw-r--r-- | tests/performance/api/environment.py | 2 | ||||
-rwxr-xr-x | tests/performance/benchmark | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/tests/performance/api/environment.py b/tests/performance/api/environment.py index 3a9b3eaf936..70fc15f251c 100644 --- a/tests/performance/api/environment.py +++ b/tests/performance/api/environment.py @@ -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 diff --git a/tests/performance/benchmark b/tests/performance/benchmark index eb01b6053a7..ad1e07d0ef3 100755 --- a/tests/performance/benchmark +++ b/tests/performance/benchmark @@ -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: |