sanitycheck: enable size tracking with size related options

Make sure we do enable size tracking with options that depend on the
size of generated binaries to be available.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
This commit is contained in:
Anas Nashif 2019-12-09 15:23:43 -05:00
commit e0d931f6b8

View file

@ -3838,6 +3838,9 @@ def main():
options.testcase_root = [os.path.join(ZEPHYR_BASE, "tests"),
os.path.join(ZEPHYR_BASE, "samples")]
if options.show_footprint or options.compare_report or options.release:
options.enable_size_report = True
suite = TestSuite(options.board_root, options.testcase_root, options.outdir)
suite.add_testcases()
suite.add_configurations()