1
0
This commit is contained in:
dump_stack() 2023-05-08 22:31:46 +00:00
parent c14c5989a4
commit e291352925
Signed by: dump_stack
GPG Key ID: BE44DA8C062D87DC

2
pew.go
View File

@ -750,6 +750,7 @@ func (cmd PewCmd) testArtifact(swg *sizedwaitgroup.SizedWaitGroup,
err = q.CopyAndRunAsync("root", cmd.EndlessStress) err = q.CopyAndRunAsync("root", cmd.EndlessStress)
if err != nil { if err != nil {
q.Stop() q.Stop()
f.Sync()
slog.Fatal().Err(err).Msg("cannot copy/run stress") slog.Fatal().Err(err).Msg("cannot copy/run stress")
return return
} }
@ -759,6 +760,7 @@ func (cmd PewCmd) testArtifact(swg *sizedwaitgroup.SizedWaitGroup,
output, err := q.Command("root", remoteTest) output, err := q.Command("root", remoteTest)
if err != nil { if err != nil {
q.Stop() q.Stop()
f.Sync()
slog.Fatal().Err(err).Msg(output) slog.Fatal().Err(err).Msg(output)
return return
} }