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

fix(anta): Fix anta exec clear-counters by adding supported platforms #601

Closed

Conversation

carl-baillargeon
Copy link
Contributor

@carl-baillargeon carl-baillargeon commented Mar 24, 2024

Description

Add platform_utils.py to be able to properly run or skip tests.

Fixes #513 #607

Checklist:

  • Fix pytest
  • Update doc

anta/device.py Outdated
@@ -171,12 +171,13 @@ async def collect_commands(self, commands: list[AntaCommand]) -> None:
"""
await asyncio.gather(*(self.collect(command=command) for command in commands))

def supports(self, command: AntaCommand) -> bool:
def supports(self, command: AntaCommand, *, log: bool = True) -> bool:
Copy link
Collaborator

Choose a reason for hiding this comment

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

Any reason why using a boolean for logging and set it to True only once ?
I would suggest to remove this boolean and put the warning where it was :)

Copy link
Contributor

This pull request has conflicts, please resolve those before we can evaluate the pull request.

@gmuloc gmuloc added this to the v1.1.0 milestone Apr 12, 2024
@mtache mtache modified the milestones: v1.1.0, v1.0.0 Apr 12, 2024
@gmuloc gmuloc modified the milestones: v1.0.0, v1.1.0 Apr 19, 2024
@carl-baillargeon carl-baillargeon deleted the fix/issue-513 branch May 18, 2024 11:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

clear hardware counter drop is not supported on some platforms
3 participants