Skip to content

Conversation

@AYUSHJAIN951
Copy link
Contributor

  1. Print final count summary after test run
  2. Add summary of testsuites ran
  3. Use Testsuite_status enum instead of hardcoded status strings

Example:

TestSuite                                                                                TestRun    Summary

host_sanity_fast_linsched                                                                Run        Successfully executed
/home/amd/Ayush/Avocadotests/results/job-2025-04-12T13.29-b585cfe/job.log
| PASS 1 || CANCEL 0 || ERRORS 0 || FAILURES 0 || SKIP 0 || WARN 0 || INTERRUPT 0 |

host_sanity_fast_numactl_Numactl_test_localalloc_numa_fc                                 Run        Successfully executed
/home/amd/Ayush/Avocadotests/results/job-2025-04-12T13.29-6d7be4d/job.log
| PASS 0 || CANCEL 1 || ERRORS 0 || FAILURES 0 || SKIP 0 || WARN 0 || INTERRUPT 0 |

host_sanity_fast2_sanity_fast2                                                           Not_Run    Command execution failed


host_sanity_fast3                                                                        Cant_Run   Config file not present


Test suites status:

TOTAL                4
RUN                  2
NOT_RUN              1
CANT_RUN             1

Final count summary for tests run:

TOTAL                2
PASS                 1
CANCEL               1
ERRORS               0
FAILURES             0
SKIP                 0
WARN                 0
INTERRUPT            0

Adds a final count summary at the end of the test run, displaying the
total number of tests and their statuses (e.g., PASS, FAILURES, SKIP).

Example output:

Final count summary for tests run:

  TOTAL                4
  PASS                 2
  CANCEL               2
  ERRORS               0
  FAILURES             0
  SKIP                 0
  WARN                 0
  INTERRUPT            0

Signed-off-by: Ayush Jain <Ayush.jain3@amd.com>
There are following possible testsuite run status
"Run" "Not_Run" "Cant_Run"

Print summary of testsuites post completion

Examples Output:

    TestSuite                                                                                TestRun    Summary

    host_sanity_test_linsched                                                                Run        Successfully executed
    /home/Avocadotests/results/job-2025-04-12T13.29-b585cfe/job.log
    | PASS 1 || CANCEL 0 || ERRORS 0 || FAILURES 0 || SKIP 0 || WARN 0 || INTERRUPT 0 |

    host_sanity_test_numactl_Numactl_test_localalloc_numa_fc                                 Run        Successfully executed
    /home/Avocadotests/results/job-2025-04-12T13.29-6d7be4d/job.log
    | PASS 0 || CANCEL 1 || ERRORS 0 || FAILURES 0 || SKIP 0 || WARN 0 || INTERRUPT 0 |

    host_sanity_test2_sanity_test2                                                           Not_Run    Command execution failed

    host_sanity_test3                                                                        Cant_Run   Config file not present

    Test suites status:

    TOTAL                4
    RUN                  2
    NOT_RUN              1
    CANT_RUN             1

Signed-off-by: Ayush Jain <Ayush.jain3@amd.com>
Replaced all direct string usages of test suite run statuses
("Run", "Not_Run", "Cant_Run") with their corresponding
Testsuite_status enum values for consistency and improved type safety.

Signed-off-by: Ayush Jain <Ayush.jain3@amd.com>
@narasimhan-v narasimhan-v merged commit 53dda2d into lop-devops:master Apr 21, 2025
@AYUSHJAIN951 AYUSHJAIN951 deleted the testsummary branch April 22, 2025 04:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants