From e217fbb7c791d56741fc474e75cd3b82687625f3 Mon Sep 17 00:00:00 2001 From: Keith Rothman <537074+litghost@users.noreply.github.com> Date: Tue, 23 Jul 2019 17:27:44 -0700 Subject: [PATCH] Add print on success when checking single design. Signed-off-by: Keith Rothman <537074+litghost@users.noreply.github.com> --- fuzzers/030-iob/check_results.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/fuzzers/030-iob/check_results.py b/fuzzers/030-iob/check_results.py index 9f36324e..12cd6fc6 100644 --- a/fuzzers/030-iob/check_results.py +++ b/fuzzers/030-iob/check_results.py @@ -90,6 +90,7 @@ def process_specimen(fasm_file, params_json): with open(params_json) as f: params = json.load(f) + count = 0 for p in params['tiles']: tile = p['tile'] for site in p['site'].split(' '): @@ -167,6 +168,10 @@ def process_specimen(fasm_file, params_json): tile, site_key, p['DRIVE'], site_from_fasm['DRIVES']) + count += 1 + + return count + def scan_specimens(): for root, dirs, files in os.walk('build'): @@ -190,7 +195,8 @@ def main(): if not args.fasm and not args.params: scan_specimens() else: - process_specimen(fasm_file=args.fasm, params_json=args.params) + count = process_specimen(fasm_file=args.fasm, params_json=args.params) + print('No errors found in {} IO sites'.format(count)) if __name__ == "__main__":