Skip to content

Commit

Permalink
Merge branch 'bugfix/idf_app_assert_print' into 'master'
Browse files Browse the repository at this point in the history
tiny-test-fw: Print more useful info when download.config doesn't exist

See merge request idf/esp-idf!3112
  • Loading branch information
igrr committed Aug 28, 2018
2 parents 131ce6c + bc307c9 commit 208530a
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion tools/tiny-test-fw/IDF/IDFApp.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,12 @@ def __init__(self, app_path):
self.idf_path = self.get_sdk_path()
self.binary_path = self.get_binary_path(app_path)
assert os.path.exists(self.binary_path)
assert self.IDF_DOWNLOAD_CONFIG_FILE in os.listdir(self.binary_path)
try:
assert self.IDF_DOWNLOAD_CONFIG_FILE in os.listdir(self.binary_path)
except AssertionError as e:
e.args += ("{} doesn't exist. Try to run 'make print_flash_cmd | tail -n 1 > {}/{}' for resolving the issue"
"".format(self.IDF_DOWNLOAD_CONFIG_FILE, self.binary_path, self.IDF_DOWNLOAD_CONFIG_FILE),)
raise
self.esptool, self.partition_tool = self.get_tools()

@classmethod
Expand Down

0 comments on commit 208530a

Please sign in to comment.