Skip to content

Conversation

@marc-hb
Copy link
Collaborator

@marc-hb marc-hb commented Jul 26, 2022

Overriden commands should work exactly like real commands and support
whitespace and special characters exactly like the real command.

I usually disable the sudo() override locally when using set -x
to reduce trace noise considerably. The previous difference between the
sudo() override and the built-in sudo() cost me couple hours twice:

No more!

Also fix the return value: 2 means SKIP.

Signed-off-by: Marc Herbert marc.herbert@intel.com

marc-hb added 2 commits July 25, 2022 20:33
I found by chance that /var/log/kernel.log can rotate which means this
overly complicated script not only duplicates `journalctl -k` it also
duplicates it in a buggy way.

Signed-off-by: Marc Herbert <marc.herbert@intel.com>
Overriden commands should work exactly like real commands and support
whitespace and special characters exactly like the real command.

I usually disable the sudo() override locally when using `set -x`
to reduce trace noise considerably. The previous difference between the
sudo() override and the built-in sudo() cost me couple hours twice:

- WIP thesofproject#897 (comment)
- Merged commit 232d40a

No more!

Also fix the return value: 2 means SKIP.

Signed-off-by: Marc Herbert <marc.herbert@intel.com>
@marc-hb marc-hb force-pushed the fix-sudo-override branch from 5ad8624 to 90aae7b Compare July 26, 2022 03:34
@marc-hb
Copy link
Collaborator Author

marc-hb commented Jul 26, 2022

case-lib/hijack.sh is shellcheck clean in https://github.com/thesofproject/sof-test/runs/7512927770?check_suite_focus=true, no new warning added in other files.

https://sof-ci.01.org/softestpr/PR943/build110/devicetest/ is all green!

@marc-hb marc-hb marked this pull request as ready for review July 26, 2022 04:34
@marc-hb marc-hb requested a review from a team as a code owner July 26, 2022 04:34
This was referenced Jul 26, 2022
Copy link
Contributor

@keqiaozhang keqiaozhang left a comment

Choose a reason for hiding this comment

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

LGTM

@marc-hb
Copy link
Collaborator Author

marc-hb commented Jul 26, 2022

thanks @keqiaozhang

@marc-hb marc-hb merged commit 1a4ea98 into thesofproject:main Jul 26, 2022
@marc-hb marc-hb deleted the fix-sudo-override branch July 26, 2022 17:27
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