lib/benchmark_driver/runner.rb in benchmark_driver-0.15.15 vs lib/benchmark_driver/runner.rb in benchmark_driver-0.15.16
- old
+ new
@@ -28,9 +28,13 @@
jobs.group_by{ |j| j.respond_to?(:contexts) && j.contexts }.each do |contexts, contexts_jobs|
contexts_jobs.group_by(&:metrics).each do |metrics, metrics_jobs|
metrics_jobs.group_by(&:class).each do |klass, klass_jobs|
runner = runner_for(klass)
+ if runner_config.alternate && runner != BenchmarkDriver::Runner::RubyStdout
+ abort "--alternate is supported only for ruby_stdout runner for now"
+ end
+
contexts = build_contexts(contexts, executables: config.executables)
output = Output.new(
type: config.output_type,
metrics: metrics,
jobs: klass_jobs.map { |job| BenchmarkDriver::Job.new(name: job.name) },