Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
Signed-off-by: Yuta Iwama <ganmacs@gmail.com>
  • Loading branch information
ganmacs committed Feb 4, 2020
1 parent 77ccc5d commit 2c3c72d
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 2 deletions.
5 changes: 4 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
language: ruby
cache: bundler
# cache: bundler

# script: bundle exec rake test TESTOPTS=-v

Expand Down Expand Up @@ -45,6 +45,9 @@ branches:
only:
- master

before_install:
- gem update --system

sudo: false
dist: trusty # for TLSv1.2 support

Expand Down
2 changes: 1 addition & 1 deletion Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ Rake::TestTask.new(:base_test) do |t|
t.test_files = if ENV["WIN_RAPID"]
["test/test_event.rb", "test/test_supervisor.rb", "test/plugin_helper/test_event_loop.rb"]
else
tests = Dir["test/**/test_*.rb"].sort
tests = Dir["test/command/test_fluentd.rb"].sort
if Process.uid.zero?
puts "test_file_util.rb for non-root user env. Disable this test on root environment"
tests.delete("test/plugin/test_file_util.rb")
Expand Down
4 changes: 4 additions & 0 deletions test/command/test_fluentd.rb
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,10 @@ def assert_log_matches(cmdline, *pattern_list, patterns_not_match: [], timeout:
rescue => e
assert_error_msg = "unexpected error in launching fluentd: #{e.inspect}\n" + stdio_buf
end
unless matched
puts stdio_buf
end

assert matched, assert_error_msg

unless patterns_not_match.empty?
Expand Down
7 changes: 7 additions & 0 deletions test/helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -153,3 +153,10 @@ def ipv6_enabled?
logdev = Fluent::Test::DummyLogDevice.new
logger = ServerEngine::DaemonLogger.new(logdev, dl_opts)
$log ||= Fluent::Log.new(logger)


File.open("Gemfile.lock") do |f|
puts nil, '<============================================================ OUTPUT START HERE'
puts f.readlines
puts '<============================================================ OUTPUT CLOSE HERE', nil
end

0 comments on commit 2c3c72d

Please sign in to comment.