Skip to content

Add daemon logging to file for tests#1451

Closed
crosbymichael wants to merge 1 commit intocontainerd:masterfrom
crosbymichael:logs
Closed

Add daemon logging to file for tests#1451
crosbymichael wants to merge 1 commit intocontainerd:masterfrom
crosbymichael:logs

Conversation

@crosbymichael
Copy link
Copy Markdown
Member

Its easier to debug when we have the daemon output logging to a file
instead of dumping the output at the end via stderr.

Signed-off-by: Michael Crosby [email protected]

Its easier to debug when we have the daemon output logging to a file
instead of dumping the output at the end via stderr.

Signed-off-by: Michael Crosby <[email protected]>
@codecov-io
Copy link
Copy Markdown

Codecov Report

Merging #1451 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@          Coverage Diff           @@
##           master   #1451   +/-   ##
======================================
  Coverage    40.8%   40.8%           
======================================
  Files          23      23           
  Lines        2924    2924           
======================================
  Hits         1193    1193           
  Misses       1453    1453           
  Partials      278     278

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update c2e894c...8497088. Read the comment docs.

Copy link
Copy Markdown
Member

@estesp estesp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Comment thread client_test.go
fmt.Fprintln(os.Stderr, "failed to remove test root dir", err)
os.Exit(1)
}
// only print containerd logs if the test failed
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Need to update CI to give it a log file to log to and print its content on exit.

Copy link
Copy Markdown
Member

@stevvooe stevvooe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

I like how this is test only.

mauriciovasquezbernal pushed a commit to kinvolk/containerd that referenced this pull request Nov 13, 2020
…build-and-test

split tests and some refactoring
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants