[GIT PULL] KUnit fixes update for Linux 5.17-rc4
From: Shuah Khan
Date: Thu Feb 10 2022 - 15:02:27 EST
Hi Linus,
Please pull the following KUnit fixes update for Linux 5.17-rc4.
This KUnit fixes update for Linux 5.17-rc4 consists of bug fixes
to the test and usage documentation.
Note: The doc fix patch resolves a bugzilla issue.
diff is attached.
thanks,
-- Shuah
----------------------------------------------------------------
The following changes since commit 235528072f28b3b0a1446279b7eaddda36dbf743:
kunit: tool: Import missing importlib.abc (2022-01-25 12:59:43 -0700)
are available in the Git repository at:
git://git.kernel.org/pub/scm/linux/kernel/git/shuah/linux-kselftest tags/linux-kselftest-kunit-fixes-5.17-rc4
for you to fetch changes up to 92a68053c3468705e2c7c752c9a3f256304a35a6:
Documentation: KUnit: Fix usage bug (2022-02-08 13:16:20 -0700)
----------------------------------------------------------------
linux-kselftest-kunit-fixes-5.17-rc4
This KUnit fixes update for Linux 5.17-rc4 consists of bug fixes
to the test and usage documentation.
----------------------------------------------------------------
Akira Kawata (1):
Documentation: KUnit: Fix usage bug
Daniel Latypov (1):
kunit: fix missing f in f-string in run_checks.py
Documentation/dev-tools/kunit/usage.rst | 2 +-
tools/testing/kunit/run_checks.py | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------
diff --git a/Documentation/dev-tools/kunit/usage.rst b/Documentation/dev-tools/kunit/usage.rst
index 76af931a332c..1c83e7d60a8a 100644
--- a/Documentation/dev-tools/kunit/usage.rst
+++ b/Documentation/dev-tools/kunit/usage.rst
@@ -242,7 +242,7 @@ example:
int rectangle_area(struct shape *this)
{
- struct rectangle *self = container_of(this, struct shape, parent);
+ struct rectangle *self = container_of(this, struct rectangle, parent);
return self->length * self->width;
};
diff --git a/tools/testing/kunit/run_checks.py b/tools/testing/kunit/run_checks.py
index 4f32133ed77c..13d854afca9d 100755
--- a/tools/testing/kunit/run_checks.py
+++ b/tools/testing/kunit/run_checks.py
@@ -61,7 +61,7 @@ def main(argv: Sequence[str]) -> None:
elif isinstance(ex, subprocess.CalledProcessError):
print(f'{name}: FAILED')
else:
- print('{name}: unexpected exception: {ex}')
+ print(f'{name}: unexpected exception: {ex}')
continue
output = ex.output