From: Mickaël Salaün Date: Thu, 18 Jan 2024 15:14:22 +0000 (+0100) Subject: kunit: tool: Print UML command X-Git-Tag: v6.9-rc1~223^2~12 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=ee8bd4a428a9c538e08aa5bc797fca19d577f667;p=thirdparty%2Fkernel%2Flinux.git kunit: tool: Print UML command As for the Qemu command, print the command used to run tests with UML. Cc: Brendan Higgins Cc: David Gow Signed-off-by: Mickaël Salaün Reviewed-by: David Gow Signed-off-by: Shuah Khan --- diff --git a/tools/testing/kunit/kunit_kernel.py b/tools/testing/kunit/kunit_kernel.py index 0b6488efed47a..7254c110ff23a 100644 --- a/tools/testing/kunit/kunit_kernel.py +++ b/tools/testing/kunit/kunit_kernel.py @@ -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,