Skip to content

Conversation

@aiChaoSONG
Copy link

@aiChaoSONG aiChaoSONG commented Apr 14, 2021

[EDIT: this is a later version of #639 , where the code review happened]

Previously, we will use /var/log/kern.log for log collcetion.
At the beginning of a test, we set up DMESG_LOG_START_LINE,
and at the end of the test, we collect kernel log from the
exact point we set up.

However, /var/log/kern.log is not exist on other distro. This
patch discards the existing log collection mechanism, and use
journalctl for log collection.

The changes include:

  • lib.sh: remove implicit setup of DMESG_LOG_START_LINE
  • hijack.sh: use journalctl to replace /var/log/kern.log
    for log collection.
  • test-case: test case fix as we need explicitly set up
    kernel check point for journalctl.

Signed-off-by: Chao Song chao.song@linux.intel.com

@aiChaoSONG aiChaoSONG requested a review from a team as a code owner April 14, 2021 07:11
@aiChaoSONG
Copy link
Author

SOFCI TEST

Previously, we will use /var/log/kern.log for log collcetion.
At the beginning of a test, we set up DMESG_LOG_START_LINE,
and at the end of the test, we collect kernel log from the
exact point we set up.

However, /var/log/kern.log is not exist on other distro. This
patch discards the existing log collection mechanism, and use
journalctl for log collection.

The changes include:
  - lib.sh: remove implicit setup of DMESG_LOG_START_LINE
  - hijack.sh: use journalctl to replace /var/log/kern.log
    for log collection.
  - test-case: test case fix as we need explicitly set up
    kernel check point for journalctl.

Signed-off-by: Chao Song <chao.song@linux.intel.com>
@aiChaoSONG
Copy link
Author

With all marc's review addressed, and failure not related.

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.

2 participants