Make run-benchmark script supports 'config' key in test plan.
[WebKit-https.git] / Tools / Scripts / webkitpy / benchmark_runner / generic_factory.py
1 #!/usr/bin/env python
2
3 import logging
4 import os
5
6
7 _log = logging.getLogger(__name__)
8
9
10 class GenericFactory(object):
11
12     products = None
13
14     @classmethod
15     def create(cls, description):
16         return cls.products[description]()
17
18     @classmethod
19     def add(cls, description, product):
20         cls.products[description] = product