mirror of
https://github.com/rust-vmm/rust-vmm-ci.git
synced 2026-08-05 03:08:31 +00:00
chore: fix formatting issues
New `black` is complaining about reformatting some of our files,
let's make it happy:
$ black . --check
would reformat rust-vmm-ci/test_run.py
would reformat rust-vmm-ci/integration_tests/conftest.py
would reformat rust-vmm-ci/.buildkite/autogenerate_pipeline.py
Oh no! 💥 💔 💥
3 files would be reformatted, 5 files would be left unchanged.
Signed-off-by: Stefano Garzarella <sgarzare@redhat.com>
This commit is contained in:
committed by
Patrick Roy
parent
65d339dde5
commit
94e2492e36
@@ -370,8 +370,7 @@ def generate_pipeline(config_file, platform_allowlist):
|
|||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
help_text = dedent(
|
help_text = dedent("""
|
||||||
"""
|
|
||||||
This script supports overriding the following configurations through
|
This script supports overriding the following configurations through
|
||||||
environment variables:
|
environment variables:
|
||||||
- X86_LINUX_AGENT_TAGS: overrides the tags by which the x86_64 linux
|
- X86_LINUX_AGENT_TAGS: overrides the tags by which the x86_64 linux
|
||||||
@@ -383,8 +382,7 @@ if __name__ == "__main__":
|
|||||||
https://github.com/buildkite-plugins/docker-buildkite-plugin.
|
https://github.com/buildkite-plugins/docker-buildkite-plugin.
|
||||||
- TESTS_TO_SKIP: specifies a list of tests to be skipped.
|
- TESTS_TO_SKIP: specifies a list of tests to be skipped.
|
||||||
- TIMEOUTS_MIN: overrides the timeout value for specific tests.
|
- TIMEOUTS_MIN: overrides the timeout value for specific tests.
|
||||||
"""
|
""")
|
||||||
)
|
|
||||||
parser = ArgumentParser(description=help_text, formatter_class=RawTextHelpFormatter)
|
parser = ArgumentParser(description=help_text, formatter_class=RawTextHelpFormatter)
|
||||||
# By default we're generating the rust-vmm-ci pipeline with the test
|
# By default we're generating the rust-vmm-ci pipeline with the test
|
||||||
# configuration committed to this repository.
|
# configuration committed to this repository.
|
||||||
|
|||||||
@@ -2,7 +2,6 @@
|
|||||||
# SPDX-License-Identifier: Apache-2.0
|
# SPDX-License-Identifier: Apache-2.0
|
||||||
import pytest
|
import pytest
|
||||||
|
|
||||||
|
|
||||||
PROFILE_CI = "ci"
|
PROFILE_CI = "ci"
|
||||||
PROFILE_DEVEL = "devel"
|
PROFILE_DEVEL = "devel"
|
||||||
|
|
||||||
|
|||||||
@@ -33,16 +33,14 @@ def retrieve_test_list(config_file=f"{PARENT_DIR}/.buildkite/test_description.js
|
|||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
help_text = dedent(
|
help_text = dedent("""
|
||||||
"""
|
|
||||||
This script allows running all the tests at once on the local machine.
|
This script allows running all the tests at once on the local machine.
|
||||||
The tests "test_benchmark.py" and "test_commit_format.py" work properly
|
The tests "test_benchmark.py" and "test_commit_format.py" work properly
|
||||||
on the local machine only when the environment variables REMOTE and
|
on the local machine only when the environment variables REMOTE and
|
||||||
BASE_BRANCH are set. Otherwise the default values are "origin" for the
|
BASE_BRANCH are set. Otherwise the default values are "origin" for the
|
||||||
remote name of the upstream repository and "main" for the name of the
|
remote name of the upstream repository and "main" for the name of the
|
||||||
base branch, and these tests may not work as expected.
|
base branch, and these tests may not work as expected.
|
||||||
"""
|
""")
|
||||||
)
|
|
||||||
parser = ArgumentParser(description=help_text, formatter_class=RawTextHelpFormatter)
|
parser = ArgumentParser(description=help_text, formatter_class=RawTextHelpFormatter)
|
||||||
parser.parse_args()
|
parser.parse_args()
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user