Skip to content

Commit ff00854

Browse files
committed
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
2 parents e3c8507 + 92a6805 commit ff00854

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Documentation/dev-tools/kunit/usage.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ example:
242242
243243
int rectangle_area(struct shape *this)
244244
{
245-
struct rectangle *self = container_of(this, struct shape, parent);
245+
struct rectangle *self = container_of(this, struct rectangle, parent);
246246
247247
return self->length * self->width;
248248
};

tools/testing/kunit/run_checks.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ def main(argv: Sequence[str]) -> None:
6161
elif isinstance(ex, subprocess.CalledProcessError):
6262
print(f'{name}: FAILED')
6363
else:
64-
print('{name}: unexpected exception: {ex}')
64+
print(f'{name}: unexpected exception: {ex}')
6565
continue
6666

6767
output = ex.output

0 commit comments

Comments
 (0)