Skip to content

Commit 7009a37

Browse files
committed
hotfix: fix command output processing
1 parent f9c5d90 commit 7009a37

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

wrapper/models/kernel_builder.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -528,7 +528,7 @@ def _build(self) -> None:
528528
cmd1 = "make -j{} O=out {} "\
529529
"ARCH=arm64 "\
530530
"SUBARCH=arm64 "\
531-
"LLVM=1" \
531+
"LLVM=1 "\
532532
"LLVM_IAS=1"\
533533
.format(punits, self._defconfig)
534534
cmd2 = "make -j{} O=out "\

wrapper/tools/commands.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ def launch(
3333
result = subprocess.run(cmd, shell=True, check=True, stdout=cstdout, stderr=subprocess.STDOUT)
3434
# return only output if required
3535
if get_output is True:
36-
return result.stdout.decode('utf-8').splitlines()
36+
return result.stdout.decode('utf-8').rstrip()
3737
except Exception:
3838
msg.error(f"Error executing command: {cmd}")
3939
# if output stream is a file -- close it

0 commit comments

Comments
 (0)