everywhere: fix typos

Fix a lot of typos

Signed-off-by: Nazar Kazakov <nazar.kazakov.work@gmail.com>
This commit is contained in:
Nazar Kazakov 2022-03-16 21:07:43 +00:00 committed by Anas Nashif
commit f483b1bc4c
757 changed files with 1284 additions and 1284 deletions

View file

@ -27,12 +27,12 @@ def yaml_load(filename):
"""
Safely load a YAML document
Follows recomendations from
Follows recommendations from
https://security.openstack.org/guidelines/dg_avoid-dangerous-input-parsing-libraries.html.
:param str filename: filename to load
:raises yaml.scanner: On YAML scan issues
:raises: any other exception on file access erors
:raises: any other exception on file access errors
:return: dictionary representing the YAML document
"""
try:
@ -46,7 +46,7 @@ def yaml_load(filename):
e.note, cmark.name, cmark.line, cmark.column, e.context)
raise
# If pykwalify is installed, then the validate functionw ill work --
# If pykwalify is installed, then the validate function will work --
# otherwise, it is a stub and we'd warn about it.
try:
import pykwalify.core
@ -67,7 +67,7 @@ except ImportError as e:
def yaml_load_verify(filename, schema):
"""
Safely load a testcase/sample yaml document and validate it
against the YAML schema, returing in case of success the YAML data.
against the YAML schema, returning in case of success the YAML data.
:param str filename: name of the file to load and process
:param dict schema: loaded YAML schema (can load with :func:`yaml_load`)

View file

@ -964,7 +964,7 @@ class QEMUHandler(Handler):
The guest virtual time in QEMU icount mode isn't host time and
it's maintained by counting guest instructions, so we use QEMU
process exection time to mostly simulate the time of guest OS.
process execution time to mostly simulate the time of guest OS.
"""
proc = psutil.Process(pid)
cpu_time = proc.cpu_times()
@ -1747,7 +1747,7 @@ Tests should reference the category and subsystem with a dot as a separator.
br"^\s*void\s+test_main\(void\)",
re.MULTILINE)
stc_regex = re.compile(
br"""^\s* # empy space at the beginning is ok
br"""^\s* # empty space at the beginning is ok
# catch the case where it is declared in the same sentence, e.g:
#
# ztest_test_suite(mutex_complex, ztest_user_unit_test(TESTNAME));
@ -1758,7 +1758,7 @@ Tests should reference the category and subsystem with a dot as a separator.
)?
# Catch ztest[_user]_unit_test-[_setup_teardown](TESTNAME)
ztest_(?:1cpu_)?(?:user_)?unit_test(?:_setup_teardown)?
# Consume the argument that becomes the extra testcse
# Consume the argument that becomes the extra testcase
\(\s*(?P<stc_name>[a-zA-Z0-9_]+)
# _setup_teardown() variant has two extra arguments that we ignore
(?:\s*,\s*[a-zA-Z0-9_]+\s*,\s*[a-zA-Z0-9_]+)?
@ -3486,7 +3486,7 @@ class TestSuite(DisablePyTestCollectionMixin):
self.filtered_platforms = set(p.platform.name for p in self.instances.values()
if p.status != "skipped" )
# Remove from discards configururations that must not be discarded (e.g. integration_platforms when --integration was used)
# Remove from discards configurations that must not be discarded (e.g. integration_platforms when --integration was used)
for instance in remove_from_discards:
del self.discards[instance]