From 64fffd3a046664dbe734a0948217c8654a0986b7 Mon Sep 17 00:00:00 2001 From: Rob Crittenden Date: Tue, 15 Feb 2022 16:10:59 -0500 Subject: [PATCH] Change the AuthenticationTest log file name to indicate result Also include the number of clients and threads in the filename. This makes it easier to find success/failure and with the tuning of clients vs threads. --- src/ipaperftest/plugins/authenticationtest.py | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/src/ipaperftest/plugins/authenticationtest.py b/src/ipaperftest/plugins/authenticationtest.py index 2378a06..c2586a2 100644 --- a/src/ipaperftest/plugins/authenticationtest.py +++ b/src/ipaperftest/plugins/authenticationtest.py @@ -224,15 +224,24 @@ def post_process_logs(self, ctx): ) if total_percentage == 100: + msg = "success" yield Result(self, SUCCESS, msg="All threads succeded.") else: + msg = "fails" yield Result(self, ERROR, error="Not all threads succeeded: %s/%s (%s)." % (total_successes, total_threads, total_percentage)) - self.results_archive_name = "AuthenticationTest-{}-{}-{}threads-{}fails".format( + + amount = ctx.params["amount"] + threads = ctx.params["threads"] + + self.results_archive_name = "AuthenticationTest-{}-{}-{}-{}-{}threads-{}{}".format( datetime.now().strftime("%FT%H%MZ"), ctx.params['server_image'].replace("/", ""), + amount, + threads, total_threads, - total_successes + total_successes, + msg )