From 27f74fe7d40c73cb5d0476ad49876d1118d7bd11 Mon Sep 17 00:00:00 2001 From: nobu Date: Thu, 21 Apr 2016 21:38:21 +0000 Subject: spec/default.mspec: reduce expand_path git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54665 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- spec/default.mspec | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'spec/default.mspec') 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 -- cgit v1.2.3