-
Notifications
You must be signed in to change notification settings - Fork 201
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
regression_1041: give 5 seconds for /dev/tpm0 to appear #769
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Acked-by: Etienne Carriere <[email protected]>
ea95eb5
to
ead50e7
Compare
host/xtest/regression_1000.c
Outdated
found = true; | ||
break; | ||
} | ||
(void)usleep(1000000); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sleep(1)
without a void cast?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes
host/xtest/regression_1000.c
Outdated
} | ||
(void)usleep(1000000); | ||
} | ||
if (!found) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't we record an error?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Indeed. Updated.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Acked-by: Jens Wiklander <[email protected]>
It does take some time for the kernel to probe the fTPM device, and therefore if regression_1041 is run immediately after boot it may fail. Add a 5 second timeout to make the test reliable. Signed-off-by: Jerome Forissier <[email protected]> Acked-by: Etienne Carriere <[email protected]> Acked-by: Jens Wiklander <[email protected]>
699de06
to
caeb54b
Compare
It does take some time for the kernel to probe the fTPM device, and therefore if regression_1041 is run immediately after boot it may fail. Add a 5 second timeout to make the test reliable.