diff options
author | Brecht Van Lommel <brecht@blender.org> | 2021-07-20 17:52:22 +0300 |
---|---|---|
committer | Brecht Van Lommel <brecht@blender.org> | 2021-07-22 17:35:00 +0300 |
commit | 320f34af86eb4ad4466fb4ef40baa1cf3fd0c617 (patch) | |
tree | ad4b581ce542056174df011f391793d39a9d885e /tests/performance/api/config.py | |
parent | 19b597c55d5d6cd6eb6cecdcff6db3e3fb5525ef (diff) |
Tests: continue running benchmarks if some tests fail to build or run
Convenient when testing many revisions where some might be broken.
Diffstat (limited to 'tests/performance/api/config.py')
-rw-r--r-- | tests/performance/api/config.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/performance/api/config.py b/tests/performance/api/config.py index 283d1ff16ec..d3a79eede14 100644 --- a/tests/performance/api/config.py +++ b/tests/performance/api/config.py @@ -31,6 +31,7 @@ class TestEntry: device_id: str = 'CPU' device_name: str = 'Unknown CPU' status: str = 'queued' + error_msg: str = '' output: Dict = field(default_factory=dict) benchmark_type: str = 'comparison' @@ -42,7 +43,8 @@ class TestEntry: def from_json(self, json_dict): for field in self.__dataclass_fields__: - setattr(self, field, json_dict[field]) + if field in json_dict: + setattr(self, field, json_dict[field]) class TestQueue: |