Add experiments timings to data to submit to DB(#5108)

This commit is contained in:
Alexander Shchepetov
2021-04-12 09:29:10 +03:00
committed by GitHub
parent 9f93509b1c
commit e864972f83
3 changed files with 6 additions and 3 deletions

View File

@@ -105,7 +105,7 @@ def run_timetest(args: dict, log=None):
aggregated_stats = aggregate_stats(filtered_stats)
log.debug("Aggregated statistics after full run: {}".format(aggregated_stats))
return 0, aggregated_stats
return 0, aggregated_stats, stats
def check_positive_int(val):
@@ -154,7 +154,7 @@ if __name__ == "__main__":
logging.basicConfig(format="[ %(levelname)s ] %(message)s",
level=logging.DEBUG, stream=sys.stdout)
exit_code, aggr_stats = run_timetest(dict(args._get_kwargs()), log=logging) # pylint: disable=protected-access
exit_code, aggr_stats, _ = run_timetest(dict(args._get_kwargs()), log=logging) # pylint: disable=protected-access
if args.stats_path:
# Save aggregated results to a file