Merge pull request #8782 from bridadan/fix_test_traceback

Fix traceback when running mbed test
pull/8803/head
Martin Kojtal 2018-11-19 13:12:34 +00:00 committed by GitHub
commit 8dc54f1f76
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 4 deletions

View File

@ -749,7 +749,7 @@ class Config(object):
if start > rom_start + rom_size:
raise ConfigException("Not enough memory on device to fit all "
"application regions")
@staticmethod
def _find_sector(address, sectors):
target_size = -1
@ -762,13 +762,13 @@ class Config(object):
if (target_size < 0):
raise ConfigException("No valid sector found")
return target_start, target_size
@staticmethod
def _align_floor(address, sectors):
target_start, target_size = Config._find_sector(address, sectors)
sector_num = (address - target_start) // target_size
return target_start + (sector_num * target_size)
@staticmethod
def _align_ceiling(address, sectors):
target_start, target_size = Config._find_sector(address, sectors)
@ -778,7 +778,7 @@ class Config(object):
@property
def report(self):
return {'app_config': self.app_config_location,
'library_configs': map(relpath, self.processed_configs.keys())}
'library_configs': list(map(relpath, self.processed_configs.keys()))}
def _generate_linker_overrides(self, rom_start, rom_size):
if self.target.mbed_app_start is not None: