Skip to content

Commit

Permalink
Merge tag 'linux-kselftest-kunit-fixes-5.17-rc4' of git://git.kernel.…
Browse files Browse the repository at this point in the history
…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
  • Loading branch information
torvalds committed Feb 10, 2022
2 parents e3c8507 + 92a6805 commit ff00854
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Documentation/dev-tools/kunit/usage.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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;
};
Expand Down
2 changes: 1 addition & 1 deletion tools/testing/kunit/run_checks.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ff00854

Please sign in to comment.