File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -44,14 +44,17 @@ def print_flow_test_output(
4444 else :
4545 msg = _green ("succeeded" )
4646 test_case_id = test_output .tft_metadata .test_case_id
47- log (
48- f"Test ID: ({ test_case_id .value } ) { test_case_id .name } , "
49- f"Test Type: { test_output .tft_metadata .test_type .name } , "
50- f"Reverse: { common .bool_to_str (test_output .tft_metadata .reverse )} , "
51- f"TX Bitrate: { test_output .bitrate_gbps .tx } Gbps, "
52- f"RX Bitrate: { test_output .bitrate_gbps .rx } Gbps, "
53- f"{ msg } "
54- )
47+ test_type = test_output .tft_metadata .test_type
48+ parts = [
49+ f"Test ID: ({ test_case_id .value } ) { test_case_id .name } " ,
50+ f"Test Type: { test_type .name } " ,
51+ ]
52+ if test_type != tftbase .TestType .HTTP :
53+ parts .append (f"Reverse: { common .bool_to_str (test_output .tft_metadata .reverse )} " )
54+ parts .append (f"TX Bitrate: { test_output .bitrate_gbps .tx } Gbps" )
55+ parts .append (f"RX Bitrate: { test_output .bitrate_gbps .rx } Gbps" )
56+ parts .append (msg )
57+ log (", " .join (parts ))
5558
5659
5760def print_plugin_output (
You can’t perform that action at this time.
0 commit comments