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

autorun_post: skip confirming executed tests



Allow to skip confirmPerPatchTests if needed.

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


Tested-by: default avatarSPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: default avatarSeth Howell <seth.howell@intel.com>
Reviewed-by: default avatarBen Walker <benjamin.walker@intel.com>
Reviewed-by: default avatarShuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
Community-CI: SPDK CI Jenkins <sys_sgci@intel.com>
parent f257be13
Loading
Loading
Loading
Loading
+8 −5
Original line number Diff line number Diff line
@@ -144,7 +144,7 @@ def confirmPerPatchTests(test_list, skiplist):
        exit(1)


def aggregateCompletedTests(output_dir, repo_dir):
def aggregateCompletedTests(output_dir, repo_dir, skip_confirm=False):
    test_list = {}
    test_completion_table = []

@@ -172,14 +172,15 @@ def aggregateCompletedTests(output_dir, repo_dir):
    printListInformation("Tests", test_list)
    generateTestCompletionTables(output_dir, test_completion_table)
    skipped_tests = getSkippedTests(repo_dir)
    if not skip_confirm:
        confirmPerPatchTests(test_list, skipped_tests)


def main(output_dir, repo_dir):
def main(output_dir, repo_dir, skip_confirm=False):
    generateCoverageReport(output_dir, repo_dir)
    collectOne(output_dir, 'doc')
    collectOne(output_dir, 'ut_coverage')
    aggregateCompletedTests(output_dir, repo_dir)
    aggregateCompletedTests(output_dir, repo_dir, skip_confirm)


if __name__ == "__main__":
@@ -188,5 +189,7 @@ if __name__ == "__main__":
                        help="The location of your build's output directory")
    parser.add_argument("-r", "--repo_directory", type=str, required=True,
                        help="The location of your spdk repository")
    parser.add_argument("-s", "--skip_confirm", required=False, action="store_true",
                        help="Do not check if all autotest.sh tests were executed.")
    args = parser.parse_args()
    main(args.directory_location, args.repo_directory)
    main(args.directory_location, args.repo_directory, args.skip_confirm)