feat: check ssh connection after tests
This commit is contained in:
parent
56faf1a351
commit
4a8f119b5d
7
pew.go
7
pew.go
@ -558,6 +558,13 @@ func copyArtifactAndTest(slog zerolog.Logger, q *qemu.System, ka config.Artifact
|
|||||||
slog.Fatal().Msg("Unsupported artifact type")
|
slog.Fatal().Msg("Unsupported artifact type")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
_, err = q.Command("root", "echo")
|
||||||
|
if err != nil {
|
||||||
|
slog.Error().Err(err).Msg("after-test ssh reconnect")
|
||||||
|
res.Test.Ok = false
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user