Skip to content

Commit 4834f72

Browse files
committed
stubber:Add path to results
1 parent 9e735a8 commit 4834f72

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

src/stubber/bulk/mcu_stubber.py

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,13 @@
1616
from rich.table import Table
1717
from tenacity import retry, stop_after_attempt, wait_fixed
1818

19+
from mpflash.mpremoteboard import ERROR, OK, MPRemoteBoard
1920
from stubber import utils
2021
from stubber.publish.merge_docstubs import merge_all_docstubs
2122
from stubber.publish.pathnames import board_folder_name
2223
from stubber.publish.publish import build_multiple
2324
from stubber.utils.config import CONFIG
2425

25-
from mpflash.mpremoteboard import ERROR, OK, MPRemoteBoard
26-
27-
2826
# TODO : make this a bit nicer
2927
HERE = Path(__file__).parent
3028
###############################################################################################
@@ -443,10 +441,15 @@ def print_result_table(all_built: List, console: Console):
443441
table = Table(title="Results")
444442

445443
table.add_column("Result", style="cyan")
446-
table.add_column("Name", style="cyan")
444+
table.add_column("Name/Path", style="cyan")
447445
table.add_column("Version", style="green")
448446
table.add_column("Error", style="red")
449447

450448
for result in all_built:
451-
table.add_row(result["result"], result["name"], result["version"], result["error"])
449+
table.add_row(
450+
result["result"],
451+
(result["name"] + "\n" + result["path"]).strip(),
452+
result["version"],
453+
result["error"],
454+
)
452455
console.print(table)

src/stubber/publish/stubpackage.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -790,6 +790,7 @@ def __init__(
790790
"name": self.package_name,
791791
"version": self.pkg_version,
792792
"error": None,
793+
"path": self.package_path.as_posix(),
793794
}
794795
)
795796
super().__init__(

0 commit comments

Comments
 (0)