Skip to content
This repository has been archived by the owner on Aug 9, 2024. It is now read-only.

Refactor cpufreq tests with unit tests #72

Draft
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

patliuu
Copy link
Contributor

@patliuu patliuu commented Jan 9, 2024

Sideload results:

Copy link
Collaborator

@baconYao baconYao left a comment

Choose a reason for hiding this comment

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

Some suggestions

- subprocess.CalledProcessError: If the 'modprobe' command encounters an
error during the module loading process.
"""
logging.info(
Copy link
Collaborator

Choose a reason for hiding this comment

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

I suddenly have an idea is about adjusting the level from info to be warning
Reason:

  • It alerts tester to notice this symptom.
  • File an issue (Severity: High) to confirm with Customer to check whether this module is probed by default or not.

return exit_code


if __name__ == "__main__":
Copy link
Collaborator

Choose a reason for hiding this comment

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

The policy from Cert Team

  • The if name == "main": is abused, should only call main

Reference: canonical/checkbox#586 (review)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants