prow/entrypoint/run.go
func (o Options) Run() int {
	code, err := o.ExecuteProcess()
	if err != nil {
		logrus.WithError(err).Error("Error executing test process")
	}
	if err := o.mark(code); err != nil {
		logrus.WithError(err).Error("Error writing exit code to marker file")
		return InternalErrorCode // we need to mark the real error code to safely return AlwaysZero
	}
	if o.AlwaysZero {
		return 0
	}
	return code
}
func (o Options) Run() int {
	code, err := o.ExecuteProcess()
	if err != nil {
		logrus.WithError(err).Error("Error executing test process")
	}
	if err := o.mark(code); err != nil {
		logrus.WithError(err).Error("Error writing exit code to marker file")
		return InternalErrorCode // we need to mark the real error code to safely return AlwaysZero
	}
	if o.AlwaysZero {
		return 0
	}
	return code
}
// Run executes the test process then writes the exit code to the marker file.
// This function returns the status code that should be passed to os.Exit().