mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
Raise an exception if there is no benchmark target
This commit is contained in:
@@ -18,6 +18,8 @@ def plot_file
|
||||
end
|
||||
|
||||
def plot
|
||||
raise "no build target to benchmark against" if $dat_files.empty?
|
||||
|
||||
opts_file = "#{MRUBY_ROOT}/benchmark/plot.gpl"
|
||||
opts = File.read(opts_file).each_line.to_a.map(&:strip).join(';')
|
||||
|
||||
|
||||
Reference in New Issue
Block a user