kopia lustrzana https://github.com/espressif/esp-idf
Merge branch 'bugfix/idf_app_assert_print' into 'master'
tiny-test-fw: Print more useful info when download.config doesn't exist See merge request idf/esp-idf!3112pull/2346/head
commit
208530a727
|
@ -32,7 +32,12 @@ class IDFApp(App.BaseApp):
|
|||
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
|
||||
|
|
Ładowanie…
Reference in New Issue