Verified Commit 4c607d11 authored by Sebastian Endres's avatar Sebastian Endres
Browse files

Add test name to plot title

parent 47084a1b
......@@ -14,7 +14,7 @@ from result_parser import ExtendedMeasurementResult, Result
from tracer import ParsingError
from utils import create_relpath, existing_file_path
DEFAULT_TITLE = "{mode_default_title} (server: {server}, client: {client})"
DEFAULT_TITLE = "{mode_default_title} ({test_abbr}, server: {server}, client: {client})"
class Side(Enum):
......@@ -208,6 +208,9 @@ class PlotAllCli:
client=measurement_result.client.name,
server=measurement_result.server.name,
mode_default_title=DEFAULT_TITLES[mode],
test_abbr=measurement_result.test.abbr,
test_name=measurement_result.test.name,
test_desc=measurement_result.test.desc,
),
mode=mode,
output_file=output_file,
......@@ -261,11 +264,13 @@ class PlotAllCli:
for plot_result in results:
if plot_result == "already_exists":
plot_result = colored(plot_result, color="green")
plot_results[plot_result].add(measurement_result.combination)
plot_results[plot_result].add(
f"{measurement_result.combination}-{measurement_result.test.abbr}"
)
if not plot_results:
plot_results[colored("success", color="green")].add(
measurement_result.combination
f"{measurement_result.combination}-{measurement_result.test.abbr}"
)
# Print a summary.
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment