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

[BUG] multiple-pause-resume.sh should be deterministic #796

Closed
lyakh opened this issue Oct 29, 2021 · 2 comments
Closed

[BUG] multiple-pause-resume.sh should be deterministic #796

lyakh opened this issue Oct 29, 2021 · 2 comments

Comments

@lyakh
Copy link
Contributor

lyakh commented Oct 29, 2021

Describe the bug
multiple-pause-resume.sh runs audio playback and capture while pausing and releasing streams at random times. This makes testing less reproducible.

Expected behavior
Random times should be replaced with deterministic ones.

Proposed fix
I propose to replace random times with a list of "pseudo-random" but fixed intervals. We could either use the pseudo-random number generator but with a fixed seed, or we can have a file with a list of "randomly picked up" prime numbers to be used as those pause-resume delays.

FYI @lgirdwood @marc-hb

@lyakh lyakh changed the title [BUG] [BUG] multiple-pause-resume.sh should be deterministic Oct 29, 2021
@marc-hb
Copy link
Collaborator

marc-hb commented Oct 30, 2021

Duplicate of #694 ?

@marc-hb
Copy link
Collaborator

marc-hb commented Nov 12, 2021

I'm assuming this is a duplicate of #694, explain and re-open if not.

@marc-hb marc-hb closed this as completed Nov 12, 2021
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

No branches or pull requests

2 participants