Skip to content

Conversation

@marc-hb
Copy link
Collaborator

@marc-hb marc-hb commented Oct 14, 2020

This allows removing "eval" and some quoting headaches.

Also fix the last shellcheck warnings

@marc-hb marc-hb marked this pull request as ready for review October 14, 2020 13:54
@marc-hb marc-hb requested a review from a team as a code owner October 14, 2020 13:54
Copy link
Contributor

@xiulipan xiulipan left a comment

Choose a reason for hiding this comment

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

I think declare -p will output some debug logs. You can keep it as comment out to help developer to debug later but I do not think we should enable it by default.

2020-10-14 06:19:16 UTC [REMOTE_INFO] Check sof debug fs environment
2020-10-14 06:19:16 UTC [REMOTE_INFO] Checking ipc flood test!
2020-10-14 06:19:16 UTC [REMOTE_INFO] ===== [1/1] loop Begin =====
2020-10-14 06:19:16 UTC [REMOTE_COMMAND] sudo bash -c 'echo 10000 > /sys/kernel/debug/sof/ipc_flood_count'
declare -- cmd="dmesg"
2020-10-14 06:19:17 UTC [REMOTE_INFO] Dumping test logs!
[  101.921335] sof-audio-pci 0000:00:1f.3: IPC Flood count: 10000, Avg response time: 53016ns
[  101.921335] sof-audio-pci 0000:00:1f.3: Max response time: 123315ns
[  101.921336] sof-audio-pci 0000:00:1f.3: Min response time: 36133ns
declare -- cmd="tail -n  +1283  /var/log/kern.log"
2020-10-14 06:19:17 UTC [REMOTE_INFO] Test Result: PASS!

This allows removing "eval" and some quoting headaches.

Signed-off-by: Marc Herbert <marc.herbert@intel.com>
This file gets frequent updates because of the (relatively) new
ignore_str.

Signed-off-by: Marc Herbert <marc.herbert@intel.com>
Copy link
Contributor

@xiulipan xiulipan left a comment

Choose a reason for hiding this comment

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

@marc-hb Thanks for the clean up. I think the debug log would be useful when we find issues. We should not enable it by default.

@xiulipan xiulipan merged commit 10013bf into thesofproject:master Oct 16, 2020
@marc-hb marc-hb deleted the log-sed-tail branch October 16, 2020 16:06
@marc-hb
Copy link
Collaborator Author

marc-hb commented Oct 16, 2020

I think the debug log would be useful when we find issues. We should not enable it by default.

I agree except we have already found issues! see #366, your commit 8b1092e, #354 (comment) and probably others

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