Skip to content

Commit

Permalink
hotfix: fix command output processing
Browse files Browse the repository at this point in the history
  • Loading branch information
seppzer0 committed Feb 14, 2024
1 parent f9c5d90 commit 7009a37
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion wrapper/models/kernel_builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -528,7 +528,7 @@ def _build(self) -> None:
cmd1 = "make -j{} O=out {} "\
"ARCH=arm64 "\
"SUBARCH=arm64 "\
"LLVM=1" \
"LLVM=1 "\
"LLVM_IAS=1"\
.format(punits, self._defconfig)
cmd2 = "make -j{} O=out "\
Expand Down
2 changes: 1 addition & 1 deletion wrapper/tools/commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def launch(
result = subprocess.run(cmd, shell=True, check=True, stdout=cstdout, stderr=subprocess.STDOUT)
# return only output if required
if get_output is True:
return result.stdout.decode('utf-8').splitlines()
return result.stdout.decode('utf-8').rstrip()
except Exception:
msg.error(f"Error executing command: {cmd}")
# if output stream is a file -- close it
Expand Down

0 comments on commit 7009a37

Please sign in to comment.