Skip to content

Commit

Permalink
canmv_k230_ssh: fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
PhilippvK committed Jan 21, 2025
1 parent 8c94071 commit e83fba6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions mlonmcu/target/riscv/canmv_k230_ssh.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ def exec(self, program, *args, cwd=os.getcwd(), handle_exit=None, **kwargs):
if handle_exit:
exit_code = handle_exit(0, out=output)
assert exit_code == 0
return output
return output, []

def parse_stdout(self, out, metrics, exit_code=0):
add_bench_metrics(out, metrics, exit_code != 0, target_name=self.name)
Expand All @@ -82,9 +82,9 @@ def _handle_exit(code, out=None):

start_time = time.time()
if self.print_outputs:
out = self.exec(elf, *args, cwd=directory, live=True, handle_exit=_handle_exit)
out, artifacts = self.exec(elf, *args, cwd=directory, live=True, handle_exit=_handle_exit)
else:
out = self.exec(
out, artifacts = self.exec(
elf, *args, cwd=directory, live=False, print_func=lambda *args, **kwargs: None, handle_exit=_handle_exit
)
# TODO: do something with out?
Expand All @@ -102,7 +102,7 @@ def _handle_exit(code, out=None):
if diff > 0:
metrics.add("MIPS", (sim_insns / diff) / 1e6, True)

return metrics, out, []
return metrics, out, artifacts

def get_platform_defs(self, platform):
ret = {}
Expand Down

0 comments on commit e83fba6

Please sign in to comment.