We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent da40517 commit 2f9573cCopy full SHA for 2f9573c
mantle/cmd/kola/testiso.go
@@ -63,6 +63,8 @@ var (
63
)
64
65
const (
66
+ installTimeout = 15 * time.Minute
67
+
68
scenarioPXEInstall = "pxe-install"
69
scenarioISOInstall = "iso-install"
70
scenarioISOLiveLogin = "iso-live-login"
@@ -260,6 +262,10 @@ func runTestIso(cmd *cobra.Command, args []string) error {
260
262
261
263
func awaitCompletion(inst *platform.QemuInstance, qchan *os.File, expected []string) error {
264
errchan := make(chan error)
265
+ go func() {
266
+ time.Sleep(installTimeout)
267
+ errchan <- fmt.Errorf("timed out after %v", installTimeout)
268
+ }()
269
go func() {
270
if err := inst.WaitAll(); err != nil {
271
errchan <- err
0 commit comments