Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

kunit: tool: Print UML command

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>

authored by

Mickaël Salaün and committed by
Shuah Khan
ee8bd4a4 d206a76d

+1
+1
tools/testing/kunit/kunit_kernel.py
··· 146 146 """Runs the Linux UML binary. Must be named 'linux'.""" 147 147 linux_bin = os.path.join(build_dir, 'linux') 148 148 params.extend(['mem=1G', 'console=tty', 'kunit_shutdown=halt']) 149 + print('Running tests with:\n$', linux_bin, ' '.join(shlex.quote(arg) for arg in params)) 149 150 return subprocess.Popen([linux_bin] + params, 150 151 stdin=subprocess.PIPE, 151 152 stdout=subprocess.PIPE,