fix(cmd/joj3): write results before postStages
All checks were successful
submodules sync / sync (push) Successful in 32s
build / build (push) Successful in 1m12s
build / trigger-build-image (push) Successful in 7s

This commit is contained in:
张泊明518370910136 2025-01-31 21:41:17 -05:00
parent e8c6e87b94
commit 8d5a08fd35
GPG Key ID: D47306D7062CDA9D
2 changed files with 4 additions and 4 deletions

View File

@ -125,10 +125,6 @@ func mainImpl() (err error) {
if err != nil {
slog.Error("stage run", "error", err)
}
if err = stage.Write(confObj.Stage.OutputPath, stageResults); err != nil {
slog.Error("stage write", "error", err)
return err
}
// run teapot
teapotRunResult, err = teapot.Run(confObj)

View File

@ -170,6 +170,10 @@ func Run(conf *conf.Conf, groups []string) (
slog.Error("run stages", "error", err)
stageResults, forceQuitStageName = newErrorStageResults(err)
}
slog.Info("write stageResults")
if err = Write(conf.Stage.OutputPath, stageResults); err != nil {
slog.Error("write stageResults", "error", err)
}
slog.Info("run postStages")
_, _, err = stage.Run(postStages)
if err != nil {