kunit: tool: Print UML command
PATCH 1/1 kunit: tool: Print UML command
As for the Qemu command, print the command used to run tests with UML.
Cc Brendan Higgins <[email protected]>
Cc David Gow <[email protected]>
Signed-off-by Mickaël Salaün <[email protected]>
--- tools/testing/kunit/kunit_kernel.py | 1 + 1 file changed, 1 insertion(+)
tools/testing/kunit/kunit_kernel.py +1 -0
@@ -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,
Signature · 1 line
2.43.0
Quoted 7 lines · Mickaël Salaün
As for the Qemu command, print the command used to run tests with UML.
Cc Brendan Higgins <[email protected]>Cc David Gow <[email protected]>Signed-off-by Mickaël Salaün <[email protected]>---
Thanks: this will definitely be useful.
Reviewed-by David Gow <[email protected]>
Cheers,
-- David