kunit: fix missing f in f-string in run_checks.py
authorDaniel Latypov <dlatypov@google.com>
Thu, 27 Jan 2022 22:17:10 +0000 (14:17 -0800)
committerShuah Khan <skhan@linuxfoundation.org>
Wed, 2 Feb 2022 18:12:15 +0000 (11:12 -0700)
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: ee92ed38364e ("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>
tools/testing/kunit/run_checks.py

index 4f32133ed77c8ad2edab71492dc7d5b76ac96417..13d854afca9dd720a11f673be80bc21c334f70ea 100755 (executable)
@@ -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