diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-04-21 21:38:21 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-04-21 21:38:21 +0000 |
commit | 2945fec47d57f7a71a2d460fcd65587dc85386c8 (patch) | |
tree | 27b77804de27efd04a527ded6f3f3b0eb343579b /spec | |
parent | 68d0123ba8522ce97041928b1ad94adc74f3b331 (diff) | |
download | ruby-2945fec47d57f7a71a2d460fcd65587dc85386c8.tar.gz |
spec/default.mspec: reduce expand_path
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54665 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'spec')
-rw-r--r-- | spec/default.mspec | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/spec/default.mspec b/spec/default.mspec index 60ceaf3b3c..bd2d736586 100644 --- a/spec/default.mspec +++ b/spec/default.mspec @@ -9,15 +9,16 @@ class MSpecScript f.read[/^\s*srcdir\s*=\s*(.+)/i] and srcdir = $1 } end + srcdir = File.expand_path(srcdir) config = RbConfig::CONFIG # The default implementation to run the specs. set :target, File.join(builddir, "miniruby#{config['exeext']}") set :prefix, File.expand_path('rubyspec', File.dirname(__FILE__)) set :flags, %W[ - -I#{File.expand_path srcdir}/lib - -I#{File.expand_path srcdir} - -I#{File.expand_path srcdir}/#{config['EXTOUT']}/common - #{File.expand_path srcdir}/tool/runruby.rb --archdir=#{Dir.pwd} --extout=#{config['EXTOUT']} + -I#{srcdir}/lib + -I#{srcdir} + -I#{srcdir}/#{config['EXTOUT']}/common + #{srcdir}/tool/runruby.rb --archdir=#{Dir.pwd} --extout=#{config['EXTOUT']} ] end |