X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=tools%2Fodl-mdsal-clustering-tests%2Fclustering-performance-test%2Finventory_read_blaster.py;fp=tools%2Fodl-mdsal-clustering-tests%2Fclustering-performance-test%2Finventory_read_blaster.py;h=c1d48d2476985664eff0a78295456422a7e735f5;hb=b2cd74063cbcdfadcbe20746116ec276e27ea0cb;hp=87a19ebc85dc3c53907be59c332e1406866a180a;hpb=e405dbebf449bda49e3c9f071043e28f57c64438;p=integration%2Ftest.git diff --git a/tools/odl-mdsal-clustering-tests/clustering-performance-test/inventory_read_blaster.py b/tools/odl-mdsal-clustering-tests/clustering-performance-test/inventory_read_blaster.py index 87a19ebc85..c1d48d2476 100755 --- a/tools/odl-mdsal-clustering-tests/clustering-performance-test/inventory_read_blaster.py +++ b/tools/odl-mdsal-clustering-tests/clustering-performance-test/inventory_read_blaster.py @@ -67,7 +67,7 @@ def read(hosts, port, auth, datastore, print_lock, cycles, results_queue): stats[r.status_code] = stats.get(r.status_code, 0) + 1 with print_lock: - print ' ', threading.current_thread().name, 'results:', stats + print(' %s results: %s' % (threading.current_thread().name, stats)) results_queue.put(stats) @@ -118,6 +118,6 @@ if __name__ == "__main__": # Aggregate the results stats = functools.reduce(operator.add, map(collections.Counter, results.queue)) - print '\n*** Test summary:' - print ' Elapsed time: %.2fs' % t.secs - print ' HTTP[OK] results: %d\n' % stats[200] + print('\n*** Test summary:') + print(' Elapsed time: %.2fs' % t.secs) + print(' HTTP[OK] results: %d\n' % stats[200])