Skip to content

Commit ee8bd4a

Browse files
l0kodshuahkh
authored andcommitted
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>
1 parent d206a76 commit ee8bd4a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tools/testing/kunit/kunit_kernel.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,7 @@ def start(self, params: List[str], build_dir: str) -> subprocess.Popen:
146146
"""Runs the Linux UML binary. Must be named 'linux'."""
147147
linux_bin = os.path.join(build_dir, 'linux')
148148
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))
149150
return subprocess.Popen([linux_bin] + params,
150151
stdin=subprocess.PIPE,
151152
stdout=subprocess.PIPE,

0 commit comments

Comments
 (0)