kunit: tool: Print UML command
authorMickaël Salaün <mic@digikod.net>
Thu, 18 Jan 2024 15:14:22 +0000 (16:14 +0100)
committerShuah Khan <skhan@linuxfoundation.org>
Tue, 27 Feb 2024 21:46:34 +0000 (14:46 -0700)
As for the Qemu command, print the command used to run tests with UML.

Cc: Brendan Higgins <brendan.higgins@linux.dev>
Cc: David Gow <davidgow@google.com>
Signed-off-by: Mickaël Salaün <mic@digikod.net>
Reviewed-by: David Gow <davidgow@google.com>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
tools/testing/kunit/kunit_kernel.py

index 0b6488efed47ac309c977fd0d3249c150de8219e..7254c110ff23ab9a661ed1ca4d9dc789b8d8762f 100644 (file)
@@ -146,6 +146,7 @@ class LinuxSourceTreeOperationsUml(LinuxSourceTreeOperations):
                """Runs the Linux UML binary. Must be named 'linux'."""
                linux_bin = os.path.join(build_dir, 'linux')
                params.extend(['mem=1G', 'console=tty', 'kunit_shutdown=halt'])
+               print('Running tests with:\n$', linux_bin, ' '.join(shlex.quote(arg) for arg in params))
                return subprocess.Popen([linux_bin] + params,
                                           stdin=subprocess.PIPE,
                                           stdout=subprocess.PIPE,