Commit dbb83cd2 authored by Vladimir Malenovsky's avatar Vladimir Malenovsky
Browse files

cleanup

parent 52253af0
Loading
Loading
Loading
Loading
+4 −18
Original line number Diff line number Diff line
@@ -986,7 +986,7 @@ class MLDConformance:
                        if runStatus == "OK":
                            if not analysisResult:
                                print(
                                    f"{testPrefix} Analyzing test: {pyTestsTag} ... Command executed successfully but MLD analysis failed!",
                                    f"{testPrefix} Analyzing test: {pyTestsTag} ... MLD analysis failed!",
                                    flush=True,
                                )
                            else:
@@ -1544,24 +1544,10 @@ if __name__ == "__main__":
            f"--testvecDir does not exist or is not a directory: {os.path.abspath(args.testvecDir)}"
        )

    requires_cut_bins = not args.analyse and not args.report_only and not args.regenerate_mld_ref
    requires_ref_bins = (
        (args.analyse and not args.be_test) or args.regenerate_enc_refs or args.regenerate_mld_ref
    ) and not args.report_only

    if requires_cut_bins:
        if not args.cut_build_path:
            parser.error("--cut_build_path is required for DUT run mode")
        validate_build_binaries(parser, args.cut_build_path, "CUT")
    elif args.cut_build_path:
        validate_build_binaries(parser, args.cut_build_path, "CUT")

    if requires_ref_bins:
        if not args.ref_build_path:
            parser.error("--ref_build_path is required for analysis/reference mode")
        validate_build_binaries(parser, args.ref_build_path, "REF")
    elif args.ref_build_path:
    if args.ref_build_path:
        validate_build_binaries(parser, args.ref_build_path, "REF")
    if args.cut_build_path:
        validate_build_binaries(parser, args.cut_build_path, "CUT")

    conformance = MLDConformance(args)
    conformance.accumulateCommands()