-
-
Notifications
You must be signed in to change notification settings - Fork 25
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
Fix tests for serial number check and add tests for temperature/psutil stuff? #507
Comments
This was some invalid serials from W1EP3DN9PU |
shawaj
changed the title
Fix tests for serial number check.
Fix tests for serial number check and add tests for temperature/psutil stuff?
Apr 8, 2023
4 tasks
Several new serial number tests added in #633 Still need to add psutil test stuff |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@robputt we should add test cases for:
Case 1:
/proc/cpuinfo - All zero serial - 0000000000000000
/proc/device-tree/serial-number - valid serial RockPi - d18dbe5c2a58cc61
Should return the second one
Case 2:
/proc/cpuinfo - All zero serial - 0000000000000000
/proc/device-tree/serial-number - All zero serial - 0000000000000000
Should return all 0s
Case 3:
/proc/cpuinfo - valid serial RasPi - 000000009e3cb787
/proc/device-tree/serial-number - valid serial RasPi - 000000009e3cb787
Should return the serial
Case 4:
/proc/cpuinfo - valid serial RockPi - d18dbe5c2a58cc61
/proc/device-tree/serial-number - valid serial RasPi - 000000009e3cb787
Should return the RockPi serial
I'm not sure there's any good way to test for an invalid serial? Unless those RockPi ones have a specific format @KevinWassermann94 or a fixed value?
The text was updated successfully, but these errors were encountered: