diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2022-02-10 15:39:59 -0800 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2022-02-10 15:39:59 -0800 |
commit | ff00854812b216e06e92191f036eb0bd1596b2d4 (patch) | |
tree | 72b5a1f3080b1d00be964df87a3149f6f749a434 | |
parent | e3c85076d7a6f986445b9008be7e7f83d1b0780a (diff) | |
parent | 92a68053c3468705e2c7c752c9a3f256304a35a6 (diff) | |
download | linux-ff00854812b216e06e92191f036eb0bd1596b2d4.tar.gz linux-ff00854812b216e06e92191f036eb0bd1596b2d4.tar.bz2 linux-ff00854812b216e06e92191f036eb0bd1596b2d4.zip |
Merge tag 'linux-kselftest-kunit-fixes-5.17-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/shuah/linux-kselftest
Pull KUnit fixes from Shuah Khan:
"Fixes to the test and usage documentation"
* tag 'linux-kselftest-kunit-fixes-5.17-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/shuah/linux-kselftest:
Documentation: KUnit: Fix usage bug
kunit: fix missing f in f-string in run_checks.py
-rw-r--r-- | Documentation/dev-tools/kunit/usage.rst | 2 | ||||
-rwxr-xr-x | 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 |