Sync
This commit is contained in:
parent
c14c5989a4
commit
e291352925
2
pew.go
2
pew.go
@ -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
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user