Skip to content

[pre-commit] Fix style issues in test scripts under tests/cacl folder#6797

Merged
xwjiang-ms merged 1 commit intosonic-net:masterfrom
xwjiang-ms:pre-commit-cacl
Nov 16, 2022
Merged

[pre-commit] Fix style issues in test scripts under tests/cacl folder#6797
xwjiang-ms merged 1 commit intosonic-net:masterfrom
xwjiang-ms:pre-commit-cacl

Conversation

@xwjiang-ms
Copy link
Copy Markdown
Contributor

Description of PR

Summary:
Fixes # (issue)

Type of change

  • Bug fix
  • Testbed and Framework(new/improvement)
  • Test case(new/improvement)

Back port request

  • 201911
  • 202012
  • 202205

Approach

What is the motivation for this PR?

pre-commit is a static analysis tool introduced recently. This tool is not able to do diff-only check. It checks the whole files touched by PR. We can't blame PR author for legacy issues. That's why currently the pre-commit check is only optional.

To ensure that we can make pre-commit a mandatory check for PRs submitted to this repository, we need to fix all the legacy issues complained by pre-commit.

How did you do it?

This change fixes the style issues of test scripts under the tests/cacl folder

How did you verify/test it?

Any platform specific information?

Supported testbed topology if it's a new test case?

Documentation

What is the motivation for this PR?
pre-commit is a static analysis tool introduced recently. This tool is
not able to do diff-only check. It checks the whole files touched by PR.
We can't blame PR author for legacy issues. That's why currently the
pre-commit check is only optional.

To ensure that we can make pre-commit a mandatory check for PRs
submitted to this repository, we need to fix all the legacy issues
complained by pre-commit.

How did you do it?
This change fixes the style issues of test scripts under the
`tests/cacl` folder

How did you verify/test it?
Any platform specific information?
Supported testbed topology if it's a new test case?
Documentation
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

Successfully merging this pull request may close these issues.

2 participants