summaryrefslogtreecommitdiffstats
path: root/bootstraptest
diff options
context:
space:
mode:
authorknu <knu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-02-18 06:27:47 +0000
committerknu <knu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-02-18 06:27:47 +0000
commit7aa63a1550e52b23dd15ee7aaddc2c5d9b953d88 (patch)
tree0e70d5dcca60220f4a7912989e2cfd6418c49886 /bootstraptest
parent9429739c8e3340fa91a436f0731552c88b9b262f (diff)
downloadruby-7aa63a1550e52b23dd15ee7aaddc2c5d9b953d88.tar.gz
ruby-7aa63a1550e52b23dd15ee7aaddc2c5d9b953d88.tar.xz
ruby-7aa63a1550e52b23dd15ee7aaddc2c5d9b953d88.zip
* bootstraptest/runner.rb: Use RUBY_DESCRIPTION if defined.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22397 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'bootstraptest')
-rw-r--r--bootstraptest/runner.rb9
1 files changed, 7 insertions, 2 deletions
diff --git a/bootstraptest/runner.rb b/bootstraptest/runner.rb
index 23a3507bf..aff5a54ee 100644
--- a/bootstraptest/runner.rb
+++ b/bootstraptest/runner.rb
@@ -95,8 +95,13 @@ End
unless quiet
puts Time.now
- patchlevel = defined?(RUBY_PATCHLEVEL) ? " patchlevel #{RUBY_PATCHLEVEL}" : ''
- puts "Driver is ruby #{RUBY_VERSION} (#{RUBY_RELEASE_DATE}#{patchlevel}) [#{RUBY_PLATFORM}]"
+ if defined?(RUBY_DESCRIPTION)
+ puts "Driver is #{RUBY_DESCRIPTION}"
+ elsif defined?(RUBY_PATCHLEVEL)
+ puts "Driver is ruby #{RUBY_VERSION} (#{RUBY_RELEASE_DATE}#{RUBY_PLATFORM}) [#{RUBY_PLATFORM}]"
+ else
+ puts "Driver is ruby #{RUBY_VERSION} (#{RUBY_RELEASE_DATE}) [#{RUBY_PLATFORM}]"
+ end
puts "Target is #{`#{@ruby} -v`.chomp}"
puts
$stdout.flush