Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test-case: add more error handling for check-performance #1092

Merged
merged 1 commit into from
Aug 29, 2023

Conversation

aiChaoSONG
Copy link

The error won't be reported if process exit unexpectedly, add error handling code for this.

The error won't be reported if process exit unexpectedly,
add error handling code for this.

Signed-off-by: Chao Song <[email protected]>
@aiChaoSONG aiChaoSONG requested a review from a team as a code owner August 29, 2023 04:33
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

@keqiaozhang keqiaozhang merged commit ea41d63 into thesofproject:main Aug 29, 2023
3 checks passed
dlogi "Number of aplay/arecord process started: $aplay_num, $arecord_num"

real_aplay_num=$(ps --no-headers -C aplay | wc -l)
real_arecord_num=$(ps --no-headers -C arecord | wc -l)
Copy link
Collaborator

@marc-hb marc-hb Aug 30, 2023

Choose a reason for hiding this comment

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

You should use wait $PIDs instead of ps. It's more reliable and it passes error codes.

https://stackoverflow.com/a/69785465

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