summaryrefslogtreecommitdiff
path: root/bootstraptest/runner.rb
diff options
context:
space:
mode:
Diffstat (limited to 'bootstraptest/runner.rb')
-rwxr-xr-xbootstraptest/runner.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/bootstraptest/runner.rb b/bootstraptest/runner.rb
index 2cd91ffd07..b155db18aa 100755
--- a/bootstraptest/runner.rb
+++ b/bootstraptest/runner.rb
@@ -271,6 +271,14 @@ ensure
end
end
+def target_platform
+ if @ruby
+ `#{@ruby} --disable-gems -e 'print RUBY_PLATFORM'`
+ else
+ RUBY_PLATFORM
+ end
+end
+
def show_limit(testsrc, opt = '', **argh)
result = get_result_string(testsrc, opt, **argh)
if @tty and @verbose