exe/benchmark-driver in benchmark_driver-0.10.15 vs exe/benchmark-driver in benchmark_driver-0.10.16
- old
+ new
@@ -85,10 +85,11 @@
jobs = config.paths.flat_map do |path|
job = YAML.load(File.read(path))
job = { 'type' => config.runner_type }.merge!(job)
begin
- BenchmarkDriver::JobParser.parse(job)
+ # `working_directory` is YAML-specific special parameter, mainly for "command_stdout"
+ BenchmarkDriver::JobParser.parse(job, default_params: { working_directory: File.dirname(path) })
rescue ArgumentError
$stderr.puts "benchmark-driver: Failed to parse #{path.dump}."
$stderr.puts ' YAML format may be wrong. See error below:'
$stderr.puts
raise