mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-04 08:08:54 +00:00
kunit: fix missing f in f-string in run_checks.py
We're missing the `f` prefix to have python do string interpolation, so
we'd never end up printing what the actual "unexpected" error is.
Fixes: ee92ed3836
("kunit: add run_checks.py script to validate kunit changes")
Signed-off-by: Daniel Latypov <dlatypov@google.com>
Reviewed-by: David Gow <davidgow@google.com>
Reviewed-by: Brendan Higgins <brendanhiggins@google.com>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
This commit is contained in:
parent
235528072f
commit
de4d73b16d
1 changed files with 1 additions and 1 deletions
|
@ -61,7 +61,7 @@ def main(argv: Sequence[str]) -> None:
|
||||||
elif isinstance(ex, subprocess.CalledProcessError):
|
elif isinstance(ex, subprocess.CalledProcessError):
|
||||||
print(f'{name}: FAILED')
|
print(f'{name}: FAILED')
|
||||||
else:
|
else:
|
||||||
print('{name}: unexpected exception: {ex}')
|
print(f'{name}: unexpected exception: {ex}')
|
||||||
continue
|
continue
|
||||||
|
|
||||||
output = ex.output
|
output = ex.output
|
||||||
|
|
Loading…
Reference in a new issue