From fd113da3aab05c90d14b450b0b20e7c42c00ff6e Mon Sep 17 00:00:00 2001 From: KOBAYASHI Shuji Date: Thu, 19 Nov 2020 11:37:00 +0900 Subject: Allow `bintest` even if build name is not `host` --- test/bintest.rb | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'test') 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) -- cgit v1.2.3