1
0

feat: check ssh connection after tests

This commit is contained in:
dump_stack() 2023-08-24 00:52:21 +00:00
parent 56faf1a351
commit 4a8f119b5d
Signed by: dump_stack
GPG Key ID: BE44DA8C062D87DC

7
pew.go
View File

@ -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
} }