Closed k0kubun closed 10 months ago
We sometimes need to run a benchmark script directly, e.g. for gdb. harness-common complains about PATH if you haven't switched to the Ruby on chruby, but this is annoying if you forget about it.
harness-common
Since we already manipulate environment variables in run_benchmarks.rb: https://github.com/Shopify/yjit-bench/blob/06808eb9ee7b2905cdafdf5e8995d13bb460a873/run_benchmarks.rb#L270-L276 we can use the same trick in the harness when it's not set up properly.
run_benchmarks.rb
We sometimes need to run a benchmark script directly, e.g. for gdb.
harness-common
complains about PATH if you haven't switched to the Ruby on chruby, but this is annoying if you forget about it.Since we already manipulate environment variables in
run_benchmarks.rb
: https://github.com/Shopify/yjit-bench/blob/06808eb9ee7b2905cdafdf5e8995d13bb460a873/run_benchmarks.rb#L270-L276 we can use the same trick in the harness when it's not set up properly.