summaryrefslogtreecommitdiff
path: root/bootstraptest/runner.rb
diff options
context:
space:
mode:
Diffstat (limited to 'bootstraptest/runner.rb')
-rwxr-xr-xbootstraptest/runner.rb11
1 files changed, 5 insertions, 6 deletions
diff --git a/bootstraptest/runner.rb b/bootstraptest/runner.rb
index acc113b729..a4101594f1 100755
--- a/bootstraptest/runner.rb
+++ b/bootstraptest/runner.rb
@@ -213,15 +213,14 @@ def exec_test(pathes)
@errbuf.each do |msg|
$stderr.puts msg
end
+
+ out = @quiet ? $stdout : $stderr
+
if @error == 0
if @count == 0
- $stderr.puts "No tests, no problem" unless @quiet
+ out.puts "No tests, no problem" unless @quiet
else
- if @quiet
- $stdout.puts "#{@passed}PASS#{@reset} all #{@count} tests"
- else
- $stderr.puts "#{@passed}PASS#{@reset} all #{@count} tests"
- end
+ out.puts "#{@passed}PASS#{@reset} all #{@count} tests"
end
exit true
else