1
0
mirror of https://github.com/esphome/esphome.git synced 2025-10-21 11:13:46 +01:00

update test

This commit is contained in:
J. Nick Koston
2025-10-17 18:29:36 -10:00
parent 7e54803ede
commit 85e0a4fbf9

View File

@@ -378,19 +378,17 @@ class IDEData:
@property
def objdump_path(self) -> str:
# replace gcc at end with objdump
# Windows
if self.cc_path.endswith(".exe"):
return f"{self.cc_path[:-7]}objdump.exe"
return f"{self.cc_path[:-3]}objdump"
return (
f"{self.cc_path[:-7]}objdump.exe"
if self.cc_path.endswith(".exe")
else f"{self.cc_path[:-3]}objdump"
)
@property
def readelf_path(self) -> str:
# replace gcc at end with readelf
# Windows
if self.cc_path.endswith(".exe"):
return f"{self.cc_path[:-7]}readelf.exe"
return f"{self.cc_path[:-3]}readelf"
return (
f"{self.cc_path[:-7]}readelf.exe"
if self.cc_path.endswith(".exe")
else f"{self.cc_path[:-3]}readelf"
)