Commit 7e64a4c6 authored by Karol Latecki's avatar Karol Latecki Committed by Tomasz Zawadzki
Browse files

autorun_post: aggregate asan and ubsan tables using any



Use "any" to aggregate "With ASAN" and "With UBSAN" tables
for test completions by agent and by test documents.
This makes reporting result in boolean (True/False) format
instead of 1/0 values.

Signed-off-by: default avatarKarol Latecki <karol.latecki@intel.com>
Change-Id: I64d3c4a170ca69e058e253f6ba4c9b1d6bbf7fa9
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/21976


Reviewed-by: default avatarKamil Godzwon <kamilx.godzwon@intel.com>
Reviewed-by: default avatarKonrad Sztyber <konrad.sztyber@intel.com>
Reviewed-by: default avatarMarek Chomnicki <marek.chomnicki@intel.com>
Reviewed-by: default avatarTomasz Zawadzki <tomasz.zawadzki@intel.com>
Tested-by: default avatarSPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: default avatarMichal Berger <michal.berger@intel.com>
parent 9c174d82
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -25,7 +25,7 @@ def generateTestCompletionTableByTest(output_dir, data_table):
    executed_tests = len(data_table_with_agent.groupby('Test'))
    tests_executions = len(data_table_with_agent.groupby(columns_to_group))

    pivot_by_test = pd.pivot_table(data_table, index=columns_to_group)
    pivot_by_test = pd.pivot_table(data_table, index=columns_to_group, aggfunc=any)

    output_file = os.path.join(output_dir, 'post_process', 'completions_table_by_test.html')
    with open(output_file, 'w') as f:
@@ -43,7 +43,7 @@ def generateTestCompletionTables(output_dir, completion_table):
    data_table.to_html(os.path.join(output_dir, 'completions_table.html'))
    os.makedirs(os.path.join(output_dir, "post_process"), exist_ok=True)

    pivot_by_agent = pd.pivot_table(data_table, index=["Agent", "Domain", "Test"])
    pivot_by_agent = pd.pivot_table(data_table, index=["Agent", "Domain", "Test"], aggfunc=any)
    pivot_by_agent.to_html(os.path.join(output_dir, "post_process", 'completions_table_by_agent.html'))

    generateTestCompletionTableByTest(output_dir, data_table)