Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -490,8 +490,8 @@ protected void AssertApkIsSigned (string apkPath)
UseShellExecute = false,
CreateNoWindow = true,
};
using var proc = Process.Start (psi);
string stdout = proc!.StandardOutput.ReadToEnd ();
using var proc = Process.Start (psi) ?? throw new InvalidOperationException ($"Failed to start '{apksignerExe}'.");
string stdout = proc.StandardOutput.ReadToEnd ();
string stderr = proc.StandardError.ReadToEnd ();
proc.WaitForExit ();
Assert.AreEqual (0, proc.ExitCode, $"APK file `{apkPath}` is not signed! apksigner verify failed:\n{stderr}\n{stdout}");
Expand Down
Loading