public override bool Execute() { LogStandardErrorAsError = false; StandardOutputImportance = "Low"; var succes = base.Execute(); if (ExitCode == 0) { return(succes); } var errorMessage = $"apkdiff exited with error code: {ExitCode}."; var testResultPath = Path.Combine(TestResultDirectory, $"TestResult-apkdiff-{Path.GetFileNameWithoutExtension (ReferenceDescription)}.xml"); ErrorResultsHelper.CreateErrorResultsFile( testResultPath, nameof(ApkDiffCheckRegression), "check apk size regression, context: https://github.com/xamarin/xamarin-android/blob/main/Documentation/project-docs/ApkSizeRegressionChecks.md", new Exception(errorMessage), $"apkdiff output:\n{logCopy}"); return(false); }
public override bool Execute() { LogStandardErrorAsError = false; StandardOutputImportance = "Low"; var succes = base.Execute(); if (ExitCode == 0) { return(succes); } var errorMessage = $"apkdiff exited with error code: {ExitCode}."; var testResultPath = Path.Combine(TestResultDirectory, $"TestResult-apkdiff-{Path.GetFileNameWithoutExtension (ReferenceDescription)}.xml"); ErrorResultsHelper.CreateErrorResultsFile( testResultPath, nameof(ApkDiffCheckRegression), "check apk size regression", new Exception(errorMessage), $"apkdiff output:\n{logCopy}"); return(false); }