diff options
| author | KOBAYASHI Shuji <[email protected]> | 2020-11-19 11:37:00 +0900 |
|---|---|---|
| committer | KOBAYASHI Shuji <[email protected]> | 2020-11-19 11:37:00 +0900 |
| commit | fd113da3aab05c90d14b450b0b20e7c42c00ff6e (patch) | |
| tree | dc9555faa744e85c9ab22a22aae2aee51c3c1af1 /test | |
| parent | 15d6e172e939b339dec74524ea2dd9e3794e84d8 (diff) | |
| download | mruby-fd113da3aab05c90d14b450b0b20e7c42c00ff6e.tar.gz mruby-fd113da3aab05c90d14b450b0b20e7c42c00ff6e.zip | |
Allow `bintest` even if build name is not `host`
Diffstat (limited to 'test')
| -rw-r--r-- | test/bintest.rb | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/test/bintest.rb b/test/bintest.rb index ed71e57fd..4a3f161ba 100644 --- a/test/bintest.rb +++ b/test/bintest.rb @@ -4,12 +4,11 @@ require 'test/assert.rb' GEMNAME = "" def cmd(s) - case RbConfig::CONFIG['host_os'] - when /mswin(?!ce)|mingw|bccwin/ - "bin\\#{s}.exe" - else - "bin/#{s}" + path = "#{ENV['BUILD_DIR']}/bin/#{s}" + if /mswin(?!ce)|mingw|bccwin/ =~ RbConfig::CONFIG['host_os'] + path = "#{path}.exe".tr("/", "\\") end + path end def shellquote(s) |
