Skip to content

Commit

Permalink
Merge pull request #591 from brianesquilona/test_order_load_if_bl
Browse files Browse the repository at this point in the history
Test order: load interface before bootloader.
  • Loading branch information
brianesquilona authored Feb 20, 2019
2 parents 9a72454 + a6ca831 commit 7de3974
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions test/run_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -225,15 +225,16 @@ def run_tests(self):
test_configuration.bl_firmware)
test_info.info("Target: %s" % test_configuration.target)


if self._load_if:
if_path = test_configuration.if_firmware.hex_path
board.load_interface(if_path, test_info)

valid_bl = test_configuration.bl_firmware is not None
if self._load_bl and valid_bl:
bl_path = test_configuration.bl_firmware.hex_path
board.load_bootloader(bl_path, test_info)

if self._load_if:
if_path = test_configuration.if_firmware.hex_path
board.load_interface(if_path, test_info)

board.set_check_fs_on_remount(True)

if self._test_daplink:
Expand Down

0 comments on commit 7de3974

Please sign in to comment.