Skip to content

Conversation

@Bin-QA
Copy link
Contributor

@Bin-QA Bin-QA commented Jun 11, 2020

use journalctl command instead of this step:

  1. get kernel bootup line number by sof-get-kernel-line.sh
  2. user step 1 information to dump the kernel log from /var/log/kern.log file

now direct use journalctl to dump the kernel log after system bootup

Signed-off-by: Wu, BinX binx.wu@intel.com

Copy link
Collaborator

@marc-hb marc-hb left a comment

Choose a reason for hiding this comment

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

I haven't read all the deleted code but if you are sure this is not losing any feature then this is great.

use journalctl command instead of this step:
1. get kernel bootup line number by sof-get-kernel-line.sh
2. user step 1 information to dump the kernel log from /var/log/kern.log file

now direct use journalctl to dump the kernel log after system bootup

Signed-off-by: Wu, BinX <binx.wu@intel.com>
Copy link
Collaborator

@marc-hb marc-hb left a comment

Choose a reason for hiding this comment

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

LGTM except I still didn't check the deleted code, sorry.

In the future maybe this entire script could become just a small function in lib.sh? (Not now)

boot_number=${1:-0}

# format time stamp output for journalctl command
LC_TIME='en_US.UTF-8'
Copy link
Collaborator

Choose a reason for hiding this comment

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

This should really be the default locale on all test systems. update-locale seems to be the CLI tool for the job (not tested)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

so force update for DUT?

Current with the check and diff older style, so add this for format output

@Bin-QA
Copy link
Contributor Author

Bin-QA commented Jun 12, 2020

LGTM except I still didn't check the deleted code, sorry.

In the future maybe this entire script could become just a small function in lib.sh? (Not now)

yes, it become more easy to understand with older one
we design for the tools to make user can direct use without full test-case script
so it almost depend on requirement, current requirement just from normally usage

@xiulipan
Copy link
Contributor

xiulipan commented Sep 2, 2020

@marc-hb I will close this one and please help to take over this PR later as @Bin-QA no longer work on this.

@xiulipan xiulipan closed this Sep 2, 2020
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.

3 participants