Takes an ImpalaTestSuite object 'test_suite' and extends the exec option test dimension by creating a copy of each existing exec option value that has 'key' set to 'value', doubling the number of tests that will be run. Exec option 'key' must not be declared before.
(test_suite, key, value)
| 327 | |
| 328 | |
| 329 | def extend_exec_option_dimension(test_suite, key, value): |
| 330 | """ |
| 331 | Takes an ImpalaTestSuite object 'test_suite' and extends the exec option test dimension |
| 332 | by creating a copy of each existing exec option value that has 'key' set to 'value', |
| 333 | doubling the number of tests that will be run. Exec option 'key' must not be declared |
| 334 | before. |
| 335 | """ |
| 336 | test_suite.ImpalaTestMatrix.assert_unique_exec_option_key(key) |
| 337 | dim = test_suite.ImpalaTestMatrix.dimensions["exec_option"] |
| 338 | new_value = [] |
| 339 | for v in dim: |
| 340 | new_value.append(ImpalaTestVector.Value(v.name, copy.copy(v.value))) |
| 341 | new_value[-1].value[key] = value |
| 342 | dim.extend(new_value) |
| 343 | test_suite.ImpalaTestMatrix.add_dimension(dim) |
| 344 | |
| 345 | |
| 346 | def get_dataset_from_workload(workload): |
no test coverage detected