Skip to content

Commit 3294a50

Browse files
jonpryorradekdoulik
authored andcommitted
[test] Check for "Unknown has vcpu" emulator message
The Jenkins emulator-based tests are hanging -- again (see also db668ba) -- this time with a new message: [emulator stderr] Unknown hax vcpu return 1 I don't know what it means, other than "nothing is going to happen for hours on end." Add an `emulator` stderr check for the above message, and bail out early if it's seen so that we don't lose hours waiting for a Job timeout to occur...
1 parent bafb47c commit 3294a50

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Xamarin.Android.Tools.BootstrapTasks/Xamarin.Android.Tools.BootstrapTasks/StartAndroidEmulator.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,10 @@ void Run (string emulator)
103103
Log.LogError ($"Do you have another VM running on the machine? If so, please try exiting the VM and try again.");
104104
sawError.Set ();
105105
}
106+
if (e.Data.StartsWith ("Unknown hax vcpu return", StringComparison.Ordinal)) {
107+
Log.LogError ($"Emulator failed to start: `{e.Data}`. Please try again?");
108+
sawError.Set ();
109+
}
106110
};
107111

108112
p.OutputDataReceived += output;

0 commit comments

Comments
 (0)