mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-22 17:55:57 +01:00
manually encode newlines on all printed commands
This way we group key value arguments: e.g.:
make \
-j 8 \
all
instead of:
make \
-j \
8 \
all
and reach CLI nirvana, while also subtly breaking several commands due to
lack of testing.
This commit is contained in:
@@ -7,13 +7,12 @@ import sys
|
||||
import common
|
||||
|
||||
def main():
|
||||
cmd = [
|
||||
os.path.join(common.qemu_src_dir, 'scripts/simpletrace.py'),
|
||||
os.path.join(common.qemu_build_dir, 'trace-events-all'),
|
||||
os.path.join(common.qemu_trace_file),
|
||||
]
|
||||
return common.run_cmd(
|
||||
cmd,
|
||||
[
|
||||
os.path.join(common.qemu_src_dir, 'scripts/simpletrace.py'), common.Newline,
|
||||
os.path.join(common.qemu_build_dir, 'trace-events-all'), common.Newline,
|
||||
os.path.join(common.qemu_trace_file), common.Newline,
|
||||
],
|
||||
cmd_file=os.path.join(common.run_dir, 'qemu-trace2txt'),
|
||||
out_file=common.qemu_trace_txt_file,
|
||||
show_stdout=False,
|
||||
|
||||
Reference in New Issue
Block a user