Shopify / yjit-bench

Set of benchmarks for the YJIT CRuby JIT compiler and other Ruby implementations.
MIT License
87 stars 22 forks source link

Fix environment variables on harness-common #267

Closed k0kubun closed 10 months ago

k0kubun commented 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.

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.