Skip to content

Commit

Permalink
fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
squirrelsc committed Jul 1, 2022
1 parent b5a04f0 commit aef588a
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion examples/testsuites/withscript.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def before_suite(self, log: Logger, **kwargs: Any) -> None:

@TestCaseMetadata(
description="""
this test case run script on a linux node, and demostrate
this test case run script on a linux node, and demonstrate
1. how to use customized script on tested node.
1. how to use requirement to limit case excludes an os.
2. use perf_timer to measure performance and output result.
Expand Down
2 changes: 1 addition & 1 deletion lisa/executable.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ def package_name(self) -> str:
def dependencies(self) -> List[Type[Tool]]:
"""
Declare all dependencies here, it can be other tools, but prevent to be a
circle dependency. The depdendented tools are checked and installed firstly.
circle dependency. The dependent tools are checked and installed firstly.
"""
return []

Expand Down
4 changes: 2 additions & 2 deletions lisa/runners/lisa_runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ def fetch_task(self) -> Optional[Task[None]]:
available_results = [x for x in self.test_results if x.can_run]
self._sort_test_results(available_results)

# check deleteable environments
# check deletable environments
delete_task = self._delete_unused_environments()
if delete_task:
return delete_task
Expand Down Expand Up @@ -185,7 +185,7 @@ def _associate_environment_test_results(

def _delete_unused_environments(self) -> Optional[Task[None]]:
available_environments = self._sort_environments(self.environments)
# check deleteable environments
# check deletable environments
for environment in available_environments:
# if an environment is in using, or not deployed, they won't be
# deleted until end of runner.
Expand Down
2 changes: 1 addition & 1 deletion lisa/schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ class Transformer(TypedSchema, ExtendableSchemaMixin):
rename: Dict[str, str] = field(default_factory=dict)
# enable this transformer or not, only enabled transformers run actually.
enabled: bool = True
# decide when the transformer run. The init means run at very begining
# decide when the transformer run. The init means run at very beginning
# phase, which is before the combinator. The expanded means run after
# combinator expanded variables.
phase: str = field(
Expand Down
2 changes: 1 addition & 1 deletion lisa/sut_orchestrator/azure/features.py
Original file line number Diff line number Diff line change
Expand Up @@ -968,7 +968,7 @@ def _select_vm_size(
# current location and that are available for the current vm size to resize to
for size in available_sizes:
vm_size_name = size.as_dict()["name"]
# Geting eligible vm sizes and their capability data
# Getting eligible vm sizes and their capability data
new_vm_size = next(
(x for x in eligible_sizes if x.vm_size == vm_size_name), None
)
Expand Down
6 changes: 3 additions & 3 deletions lisa/util/shell.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ def wait_tcp_port_ready(
times: int = 0
result: int = 0

timout_timer = create_timer()
while timout_timer.elapsed(False) < timeout:
timeout_timer = create_timer()
while timeout_timer.elapsed(False) < timeout:
with socket.socket(socket.AF_INET, socket.SOCK_STREAM) as tcp_socket:
try:
result = tcp_socket.connect_ex((address, port))
Expand All @@ -47,7 +47,7 @@ def wait_tcp_port_ready(
log.debug(
f"cannot connect to {address}:{port}, "
f"error code: {result}, current try: {times + 1},"
f" elapsed: {timout_timer.elapsed(False)} "
f" elapsed: {timeout_timer.elapsed(False)} "
f"(timeout on {timeout}). retrying..."
)
sleep(1)
Expand Down

0 comments on commit aef588a

Please sign in to comment.