Skip to content

Commit

Permalink
Change the AuthenticationTest log file name to indicate result
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
rcritten committed Feb 15, 2022
1 parent bd074db commit 64fffd3
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions src/ipaperftest/plugins/authenticationtest.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
)

0 comments on commit 64fffd3

Please sign in to comment.