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 | 27f74fe7d40c73cb5d0476ad49876d1118d7bd11 (patch) | |
tree | 27b77804de27efd04a527ded6f3f3b0eb343579b /spec | |
parent | feaa82a42ba238d9192d219f72229f4c3948957f (diff) |
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 |