def test_experiment_parameters():
    from lttngcluster.utils import dict_product
    parameters = { 'foo': [ 1, 2, 3 ],
                   'bar': [ 4, 5, 6 ],
                   'baz': [ 7, 8, 9 ],
    }
    ctx = dict_product(parameters)
    context_list = []
    for context in ctx:
        context_list.append(context)
    assert len(context_list) == 27
Esempio n. 2
0
 def context_generator(self):
     parameters = self.get('parameters', {})
     context = dict_product(parameters)
     for ctx in context:
         self._current_context = ctx
         yield ctx
Esempio n. 3
0
 def context_generator(self):
     parameters = self.get("parameters", {})
     context = dict_product(parameters)
     for ctx in context:
         self._current_context = ctx
         yield ctx