sanitycheck: reduce verbosity when selecting specifc platforms

if we are using command line platform filter, no need to list every
other platform as excluded, we know that already.  Show only the
discards that apply to the selected platforms on the command line

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
This commit is contained in:
Anas Nashif 2018-01-13 07:57:42 -05:00 committed by Andrew Boie
parent 30551f40e9
commit f18e2abdd5

View file

@ -2340,7 +2340,14 @@ def main():
ts.discard_report(options.discard_report)
if VERBOSE > 1 and discards:
# if we are using command line platform filter, no need to list every
# other platform as excluded, we know that already.
# Show only the discards that apply to the selected platforms on the
# command line
for i, reason in discards.items():
if options.platform and i.platform.name not in options.platform:
continue
debug(
"{:<25} {:<50} {}SKIPPED{}: {}".format(
i.platform.name,