Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorBrecht Van Lommel <brecht@blender.org>2021-09-08 20:56:07 +0300
committerBrecht Van Lommel <brecht@blender.org>2021-09-08 20:58:27 +0300
commit5bfc3a342170f961a5474687434e57b69b5ece2d (patch)
treee894d5b9167660347479a29cd706c2d11e6b0cdb /tests
parent6fc94d18485a57d262a3301ad6255b60abcfd883 (diff)
Fix error running benchmark script with environment variables for builds
Ref D12434
Diffstat (limited to 'tests')
-rw-r--r--tests/performance/api/config.py11
1 files changed, 9 insertions, 2 deletions
diff --git a/tests/performance/api/config.py b/tests/performance/api/config.py
index aa991e7d7d8..b5e2b390aa3 100644
--- a/tests/performance/api/config.py
+++ b/tests/performance/api/config.py
@@ -161,7 +161,13 @@ class TestConfig:
def read_blender_executables(env, name) -> List:
config = TestConfig._read_config_module(env.base_dir / name)
builds = getattr(config, 'builds', {})
- return [pathlib.Path(build) for build in builds.values()]
+ executables = []
+
+ for executable in builds.values():
+ executable, _ = TestConfig._split_environment_variables(executable)
+ executables.append(pathlib.Path(executable))
+
+ return executables
@staticmethod
def _read_config_module(base_dir: pathlib.Path) -> None:
@@ -274,7 +280,8 @@ class TestConfig:
return entries
- def _split_environment_variables(self, revision):
+ @staticmethod
+ def _split_environment_variables(revision):
if isinstance(revision, str):
return revision, {}
else: