forked from platformio/platformio-core
Cover maintenance operations with tests
This commit is contained in:
1 parent
31fdc76f25
commit
9a959a0aa4
4 files changed
+197
-3
No files matched your search
@@ -89,7 +89,7 @@ WARNING! Don't use `sudo` for the rest PlatformIO commands.
|
||||
|
||||
def get_latest_version():
|
||||
try:
|
||||
if not isinstance(VERSION[2], int):
|
||||
if not str(VERSION[2]).isdigit():
|
||||
try:
|
||||
return get_develop_latest_version()
|
||||
except: # pylint: disable=bare-except
|
||||
|
||||
@@ -75,7 +75,7 @@ class Upgrader(object):
|
||||
util.pepver_to_semver(to_version))
|
||||
|
||||
self._upgraders = [
|
||||
(semantic_version.Version("3.0.0"), self._upgrade_to_3_0_0)
|
||||
(semantic_version.Version("3.0.0-a1"), self._upgrade_to_3_0_0)
|
||||
]
|
||||
|
||||
def run(self, ctx):
|
||||
|
||||
@@ -524,7 +524,8 @@ class PlatformBoardConfig(object):
|
||||
"name": self._manifest['name'],
|
||||
"platform": self._manifest.get("platform"),
|
||||
"mcu": self._manifest.get("build", {}).get("mcu", "").upper(),
|
||||
"fcpu": int(self._manifest.get("build", {}).get("f_cpu", "")[:-1]),
|
||||
"fcpu":
|
||||
int(self._manifest.get("build", {}).get("f_cpu", "0L")[:-1]),
|
||||
"ram": self._manifest.get("upload", {}).get("maximum_ram_size", 0),
|
||||
"rom": self._manifest.get("upload", {}).get("maximum_size", 0),
|
||||
"frameworks": self._manifest.get("frameworks"),
|
||||
|
||||
Reference in new issue
Block a user