Просмотр исходного кода

tools: fix bug with idf_size argument archive_details

simon.chupin 4 лет назад
Родитель
Сommit
fbf1df22b7
2 измененных файлов с 432 добавлено и 511 удалено
  1. 1 1
      tools/idf_size.py
  2. 431 510
      tools/test_idf_size/expected_output

+ 1 - 1
tools/idf_size.py

@@ -1079,7 +1079,7 @@ class StructureForArchiveSymbols(object):
 
 
 
 
 def get_archive_symbols(sections, archive, as_json=False, sections_diff=None):  # type: (Dict, str, bool, Dict) -> str
 def get_archive_symbols(sections, archive, as_json=False, sections_diff=None):  # type: (Dict, str, bool, Dict) -> str
-    diff_en = sections_diff is not None
+    diff_en = bool(sections_diff)
     current = StructureForArchiveSymbols.get(archive, sections)
     current = StructureForArchiveSymbols.get(archive, sections)
     reference = StructureForArchiveSymbols.get(archive, sections_diff) if sections_diff else {}
     reference = StructureForArchiveSymbols.get(archive, sections_diff) if sections_diff else {}
 
 

Разница между файлами не показана из-за своего большого размера
+ 431 - 510
tools/test_idf_size/expected_output


Некоторые файлы не были показаны из-за большого количества измененных файлов